Skip to content

Snapshot does not capture Iframe content #186

Closed

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.

Activity

  1. self-assigned this
    on Sep 30, 2025
  2. added a commit that references this issue on Sep 30, 2025
    ce356f2
  3. aramvr commented on Sep 30, 2025

    @aramvr
    Author

    👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions