Skip to content

Commit dca6e6b

Browse files
committed
fix: snapshot does not capture Iframe content
1 parent 1de725a commit dca6e6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/McpContext.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ export class McpContext implements Context {
302302
*/
303303
async createTextSnapshot(): Promise<void> {
304304
const page = this.getSelectedPage();
305-
const rootNode = await page.accessibility.snapshot();
305+
const rootNode = await page.accessibility.snapshot({
306+
includeIframes: true,
307+
});
306308
if (!rootNode) {
307309
return;
308310
}

0 commit comments

Comments
 (0)