Skip to content

Snapshot does not capture Iframe content #186

@aramvr

Description

@aramvr

Describe the bug
Currently, the snapshot tool does not capture content inside iframes.

I tested locally, and in McpContext.ts, adding includeIframes: true like this:

const rootNode = await page.accessibility.snapshot({
  includeIframes: true,
});

correctly includes iframe content, and all actions work as expected. There might be some additional context that I’m missing, but this seems to resolve the issue in my local tests.

To Reproduce
Steps to reproduce the behavior:

  1. Open a webpage that contains at least one <iframe> (e.g. an embedded form or external widget).
  2. Run the snapshot tool to capture the accessibility tree.
  3. Inspect the generated snapshot.
  4. Notice that the iframe content is missing from the snapshot.

Expected behavior
A clear and concise description of what you expected to happen.

Chrome version:
Coding agent version:
Model version:

Screenshots
If applicable, add screenshots to help explain your problem.

Chat log
The full log of the chat with your coding agent.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions