Skip to content

Selected element is not reported if the selected element is not part of the a11y snapshot #586

@natorion

Description

@natorion

Description of the bug

Selected elements are ommited if they are not relevant for interacting with the page.

Reproduction

Repro:

1.) Open page that has a lot of divs and a few controls
2.) Select one of the divs in DevTools
3.) Reference in your prompt the selected element
4.) take_snapshot does not include the div

Expectation

a selected element should always be added to take_snapshot - no matter what type it is.

MCP configuration

No response

Chrome DevTools MCP version

0.10

Chrome version

No response

Coding agent version

No response

Model version

No response

Chat log

No response

Node version

No response

Operating system

None

Extra checklist

  • I want to provide a PR to fix this bug

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions