You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_console_message cannot resolve msgids returned by list_console_messages(serviceWorkerId=…) #3454
list_console_messages can filter by serviceWorkerId and returns service-worker console msgids via getServiceWorkerConsoleData. get_console_message only looks up the selected page’s consoleCollector. Those SW msgids always fail, so an agent cannot fetch the detailed body of a listed service-worker message.
Actual behavior
Lookup goes through McpPage.getConsoleMessageById → PageCollector.getById, which throws Request not found for selected page, even though ServiceWorkerConsoleCollector.getById already exists and is unused by this tool. The error string is also misleading: it comes from the shared request collector, not from a console-specific miss.
This was confirmed by comparing the list and get code paths on current main. Related but different issues: #2962 (dedicated-worker uncaught errors missing from the list), #3408 / #3397 (Error args / preserved stacks).
Produce a console message from a service worker (an extension SW, or a page SW exposed as sw-N).
Call list_console_messages with serviceWorkerId: "sw-N" and note a returned msgid.
Call get_console_message with that msgid.
List path: src/tools/console.ts → context.getServiceWorkerConsoleData. Get path: src/tools/console.ts → attachConsoleMessage(msgid) only, which consults the page collector in src/McpPage.ts.
Expectation
get_console_message should resolve the same SW msgids that list_console_messages(serviceWorkerId=…) just returned. One way is to add an optional serviceWorkerId argument (mirroring list) and resolve via the SW collector when it is set. A miss should report a console-specific error such as Console message not found…, not Request not found….
Chrome DevTools MCP version
Latest npm release 1.12.0, and current default branch main at 1d692d31ae37.
Activity
OrKoN commentedon Nov 11, 2026
@nroscino could you please check?
nroscino commentedon Nov 12, 2026
@OrKoN Sure! Will take a look this afternoon or tomorrow morning!
feat: add service workers to get_console_message (ChromeDevTools#3537)