chrome-devtools-mcp icon indicating copy to clipboard operation
chrome-devtools-mcp copied to clipboard

return all pages when click web element

Open kober-basket opened this issue 2 months ago • 3 comments

Description of the bug

Clicking an element may open a new page. If the list of pages is not returned, the model cannot perceive that a new page has opened and will therefore assume that the click action did not take effect. Returning the list of open pages can effectively solve this problem.

Image

Reproduction

No response

Expectation

No response

MCP configuration

No response

Node version

No response

Chrome version

No response

Coding agent version

No response

Model version

No response

Chat log

No response

Operating system

None

Extra checklist

  • [ ] I want to provide a PR to fix this bug

kober-basket avatar Oct 13 '25 11:10 kober-basket

Related to https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/243 but slightly different flavour of a navigation resulting in a new window

OrKoN avatar Oct 13 '25 11:10 OrKoN

can you optimize this problem, it will be very useful

kober-basket avatar Oct 13 '25 12:10 kober-basket

I think this needs to be optional, not every click results in a reload of the whole tree and returning the whole tree will just consume tokens like crazy.

natorion avatar Oct 17 '25 13:10 natorion