ChromeDevTools / ChromeDevTools/chrome-devtools-mcp
Bug: Get the currently selected browser tab
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 52.3k
- Forks
- 4.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 83
Description
Description of the bug
As a user, I'd like to have a simple way to get the current browser tab (content) into my LLM Chat.
Expected workflow:
take_snapshot(description says ...of the currently selected page...)
Actually needed workflow:
list_pagesselect_page(manually pick the one that is already open in browser)take_snapshot
Why doesn't the expected workflow work?
The 'list_pages' tool shows 'selected', but it is not in sync with the actual browser initiall (on startup) and can easily get out-of-sync (when user manually changes tabs). So it often returns content from the wrong page.
Use cases:
- user reads a relevant docs page (already open)
- user inspects a failed pipeline run after he got a mail and clicked it (already open)
- user wants to share information behind a paywall (open and logged in)
- ...
Note: This is about the scenario where chrome-dev-tools is connected via --auto-connect to an already running browser instance, as described in https://github.com/ChromeDevTools/chrome-devtools-mcp?tab=readme-ov-file#configuration.
Reproduction
- Open Chrome, open at least two tabs with two different websites.
- Open VSCode
- As to "take a snapshot and summarize the page"
Expectation
take_snapshotshould return the page the user is currently looking at, not a different onelist_pagesshould show 'selected' tag on the page that is currently open in the browser (e.g. last focused, last visited, or similar)
MCP configuration
{
"inputs": [],
"servers": {
"chrome-devtools": {
"type": "stdio",
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--autoConnect"
],
"gallery": "https://api.mcp.github.com",
"version": "0.17.0"
}
}
}
Chrome DevTools MCP version
0.17.0
Chrome version
144.0.7559.133 (Official Build) (64-bit) (cohort: Stable)
Coding agent version
VSCode 1.109.0 + Github Copilot Chat 0.37.2
Model version
GPT-4.1
Chat log
No response
Node version
v24.12.0
Operating system
Windows
Extra checklist
- I want to provide a PR to fix this bug
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the list_pages, select_page, and take_snapshot entry points used with --autoConnect. Reproduce the mismatch with two open tabs and compare the reported selected page with the browser's currently focused tab. Done means take_snapshot uses the user's current tab and list_pages marks that page as selected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100