Repository navigation
Description
Description of the bug
skills/cookie-debugging/SKILL.md describes its tools as acting on "the currently selected page" (Session Strategy table, Live Tab row) and never mentions pageId, but page-scoped tools have required pageId by default since 1.8.0 (#1777, --pageIdRouting defaults to true). Under the default configuration, the literal argument object the skill gives for list_console_messages is rejected with pageId: Invalid input: expected number, received undefined, and so is every other page-scoped call made the way the skill's prose describes it, without pageId. It is the only skill in skills/ with no pageId mention; #1777 added pageId to the other skills, and this skill was added afterwards in #2596 (1.9.0). Observed on 1.10.1 and on main at b2f522c; the skill text is identical in both. This is separate from #2906, which covers the navigate_page reload: true argument in the same skill.
Actual behavior
In both builds, the three step 4 calls returned isError: true with, respectively, Input validation error: Invalid arguments for tool list_network_requests: pageId: Invalid input: expected number, received undefined, Input validation error: Invalid arguments for tool list_console_messages: pageId: Invalid input: expected number, received undefined and Input validation error: Invalid arguments for tool evaluate_script: pageId: Invalid input: expected number, received undefined. list_pages immediately before showed 1: ... (http://localhost:<port>/) [selected], so a selected page existed. The step 5 controls succeeded: list_network_requests listed reqid=1 GET http://localhost:<port>/ [200], list_console_messages returned <no console messages found>, and evaluate_script returned [{"domain":null,"expires":null,"name":"theme","partitioned":false,"path":"/","sameSite":"lax","secure":false,"value":"light"}].
grep -c pageId skills/*/SKILL.md on main returns 0 for cookie-debugging and at least 1 for every other skill. I did not run the skill with --pageIdRouting=false, where the calls as written would be expected to pass schema validation.
Reproduction
Executed on macOS with Node v24.21.0 and Google Chrome 154.0.8037.93 against the published chrome-devtools-mcp@1.10.1 package and a local build of main, with usage statistics and update checks disabled (CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1).
- Serve a page on a loopback port that sets a non-HttpOnly cookie, for example a response with header
Set-Cookie: theme=light; Path=/(localhostis a secure context, socookieStoreis available). npm i --prefix /tmp/x chrome-devtools-mcp@1.10.1, then start/tmp/x/node_modules/.bin/chrome-devtools-mcp --headless --isolated --no-usage-statistics --no-performance-cruxunder an MCP stdio client (I used a minimal newline-delimited JSON-RPC stdio client that sendsinitialize,tools/listandtools/call).- Call
navigate_pagewith{"pageId": 1, "url": "http://localhost:<port>/"}, thenlist_pages. - Make the calls as the skill describes them:
list_network_requestswith{"includePreservedRequests": true}(workflow 1, step 1);list_console_messageswith the skill's literal object{"types": ["issue"], "includePreservedMessages": true}(workflow 3, step 1);evaluate_scriptwith{"function": "async () => await cookieStore.getAll()"}(Core Concepts and workflow 4). Only thelist_console_messagesobject is given literally in the skill; the other two calls carry exactly the arguments its prose names. - Control: repeat the three calls with
"pageId": 1added.
I repeated the same steps with node build/src/bin/chrome-devtools-mcp.js from the main build.
Expectation
Following the skill with the server's default configuration should produce working tool calls, and its description of how the "Live Tab" strategy targets a page should match how the server routes page-scoped tools. Since 1.8.0, --pageIdRouting defaults to true with the description "Require pageId on page-scoped tools and route requests by page ID" (src/config/mcp-options.ts, lines 47-52 at tag chrome-devtools-mcp-v1.10.1, lines 28-33 on main; CHANGELOG 1.8.0 entry for #1777), and skills/chrome-devtools/SKILL.md:14 tells agents that "Page-scoped tools require a pageId parameter to target a specific page." definePageTool adds the required pageId schema to every page-scoped tool when pageIdRouting is on (src/tools/ToolDefinition.ts, definePageTool).
Chrome DevTools MCP version
1.10.1 (npm) and main b2f522c (local build)
Chrome version
154.0.8037.93 (stable, headless, isolated)
Node version
v24.21.0
Operating system
macOS
Evidence
- Expected source:
src/config/mcp-options.ts(pageIdRouting, defaulttrue; lines 47-52 at tagchrome-devtools-mcp-v1.10.1, lines 28-33 onmain),definePageToolinsrc/tools/ToolDefinition.ts,skills/chrome-devtools/SKILL.md:14, and CHANGELOG 1.8.0 entry for feat: make pageId required for page-scoped tools by default #1777. - Failure source:
skills/cookie-debugging/SKILL.md:22("Operates directly on the currently selected page.") and the page-scoped calls in its workflows (for example lines 46, 53, 73 and 91-97), identical in the 1.10.1 npm package and onmain, together with the tool responses quoted under Actual behavior. - Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
Fix check
Failing now: with the default configuration, the page-scoped calls the cookie-debugging skill describes, including its literal list_console_messages argument object, return the pageId: Invalid input: expected number, received undefined validation error, and the skill says the Live Tab strategy operates on the currently selected page. Restored: an agent following the skill under the default configuration makes page-scoped calls that pass validation and target the intended page, as the step 5 controls do, and the skill's description of page targeting matches pageId routing. Control: page-scoped tools keep requiring pageId under the default --pageIdRouting=true; restoration must not come from relaxing that requirement unless the routing contract is deliberately changed.
Activity
docs: fix inaccurate examples in skills and CLI docs (ChromeDevTools#…
chore(main): release chrome-devtools-mcp 1.11.0 (#2823)