/chrome-devtools-mcp:inspect-in-devtoolsfrom chrome-devtools-mcp
Connects to Chrome DevTools UI for interactive debugging, inspecting elements/network requests, and addressing DevTools comment threads. Requires Chrome M159+.
Ships in chrome-devtools-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to:
--devtools-comments in the MCP server config. Without it, open_devtools, reveal_in_devtools, get_devtools_comments, and resolve_devtools_comment are not available.--headless mode.pageId from list_pages or new_page.This skill does not work on Chrome versions earlier than M159. If a tool returns DevTools comments are not supported by the connected browser:
--channel (for example, --channel=canary).Whenever you call open_devtools or reveal_in_devtools to show something to the user, assume they may leave DevTools comments next:
pageId before ending your turn, unless one is already active for that pageId or the user explicitly opted out (for example, "check once" or "don't poll"). Tell the user in chat that you are watching for DevTools comments in the background, then end your turn promptly so chat stays responsive.pageId rather than spawning a duplicate, unless the user says they are done.open_devtools or reveal_in_devtools. Only poll inline when the user explicitly asks you to wait for comments.Call open_devtools with pageId. Do this before calling reveal_in_devtools, get_devtools_comments, or resolve_devtools_comment. Then ensure a background comment watcher is running for pageId (see Default Behavior above).
Call reveal_in_devtools with pageId and these optional parameters:
panelName: "elements", "network", "sources", or "console". Pass it alone to switch panels.uid: Element uid from take_snapshot. Reveals the element in the Elements panel. If the element may be below the fold, also scroll it into view on the page (for example with evaluate_script) so the user can see it in the viewport as well as the Elements tree.reqid: Request reqid from list_network_requests. Reveals the request in the Network panel.uid and reqid are mutually exclusive. After revealing a target, ensure a background comment watcher is running for pageId (see Default Behavior above).
take_snapshot with verbose: true when reading the element selected in the Elements panel, or whenever a non-accessibility node (<div>, wrapper, or decorative <img>) is omitted from a compact snapshot. Pass its uid to get_css_styles, take_screenshot, or evaluate_script.get_network_request and omit reqid. It returns the request selected in the Network panel.Use this mode automatically after open_devtools or reveal_in_devtools, and whenever the user asks to check or wait for comments, unless they explicitly opt out.
Watcher lifecycle and rules:
pageId. Never spawn a second watcher for the same pageId; after resolving a batch of comments in the main thread, message or resume the existing watcher to keep listening. Because get_devtools_comments returns each thread only once, do not call get_devtools_comments from the main agent while a watcher is active for pageId.chrome-devtools MCP tools (do not use a read-only or tool-restricted sub-agent that cannot call get_devtools_comments). If your harness lets you pick a lighter or faster model for sub-agents, prefer it since the watcher only polls.get_devtools_comments(pageId, timeout: 10000) and passes the full tool output unchanged (thread id, comment, uid, reqid), or any unsupported-Chrome error, back to the main agent so no threads are lost or rewritten. The main agent, which has full conversation and workspace context, inspects targets, edits files, verifies changes, resolves threads, and resumes the watcher.timeout: 10000 (the 10s default) rather than a longer wait so interactive browser tool calls from the main agent do not stall behind an active poll in MCP clients that serialize requests per server. Never pass timeout: 0 while polling (it returns immediately without waiting)."Waited <n>ms for new DevTools comments." or "No open DevTools comments found."), call get_devtools_comments again.DevTools comments are not supported by the connected browser, it must stop immediately and report the error back to the main agent.get_devtools_comments(pageId, timeout: 10000) inline (do not end your turn early) up to 12 consecutive empty polls, and tell the user if watching expires.Use this mode only when the user explicitly asks not to keep watching (for example, "check once" or "don't poll").
get_devtools_comments once with timeout: 0.For each ### Thread: <id>:
Related element uid: Use get_css_styles, take_snapshot (with verbose: true if needed), or take_screenshot with the uid.Related network reqid: Use get_network_request with the reqid.reveal_in_devtools to bring the user's eye to the target.backendNodeId / uid). DevTools comments survive page reloads in the Comments drawer (only closing DevTools clears them), while HMR/live updates preserve anchored DOM nodes cleanly without marking them (removed). Prefer HMR when available; reload only when needed.resolve_devtools_comment replies and resolves in one action, and get_devtools_comments will not return the same thread again. If a comment is genuinely ambiguous and needs clarification, leave the thread unresolved, ask the user in chat, keep the threadId, and resolve the thread after the user answers.resolve_devtools_comment with pageId, threadId, and a concise replyText: 1-2 sentences stating the change and file for fixes, or a direct root-cause answer for questions.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub chromedevtools/chrome-devtools-mcp --plugin chrome-devtools-mcp8 skills in this plugin
/a11y-debuggingUses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic HTML, ARIA labels, focus states, keyboard navigation, tap targets, and color contrast./chrome-devtoolsUses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to `--slim` mode (MCP configuration)./chrome-devtools-cliUse this skill to write shell scripts or run shell commands to automate tasks in the browser or otherwise use Chrome DevTools via CLI.Other plugins' skills for the same job