Bug: Get the currently selected browser tab
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- devtools
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.
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
- Dominant language
- TypeScript
- Stars
- 59.8k
- Forks
- 4.8k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 162
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from ChromeDevTools/chrome-devtools-mcp
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
Maintainers usually reply within 1 day
-
`evaluate_script` `sourcePath` http(s) URLs are mangled into `file://` pathsMay be free again A pull request for this issue was closed without being merged. Opencollecting-feedback
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3453 · 3 comments ·
Maintainers usually reply within 1 day
-
collecting-feedback feature
Difficulty 2/5 Half a day Newbie friendliness 76/100
ChromeDevTools/chrome-devtools-mcp#3225 · 3 comments ·
Maintainers usually reply within 1 day
-
confirmed p3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#2947 · 1 comment ·
Maintainers usually reply within 1 day
-
Project Migration: Moving to devtools-frontendPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
ChromeDevTools/chrome-devtools-mcp#3648 ·
Maintainers usually reply within 1 day
All issues in ChromeDevTools/chrome-devtools-mcp
Similar issues
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nightly-labs/openbot#21303 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ADORSYS-GIS/CoopData#282 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OHDSI/Data2Evidence#3816 ·
Maintainers usually reply within 3 days
-
`ovsx verify` fails for a version older than the 100 newest of an extensionPossibly taken @trivikr claimed this today. Opencli
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
eclipse-openvsx/openvsx#2482 · 2 comments ·
Maintainers usually reply within 1 day
-
bug builder-vite hmr sev:S3
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
storybookjs/storybook#37965 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day