return all pages when click web element
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.
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
Related to https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/243 but slightly different flavour of a navigation resulting in a new window
can you optimize this problem, it will be very useful
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.