Skip to content

Tool bin chrome debug

Ilia edited this page Nov 9, 2026 · 1 revision

Starts Chrome (Playwright's build) with the debugging port Claude Code's chrome-devtools tools connect to. Under WSLg it also puts the window back on the right monitor.

chrome-debug                     # bring the window forward, opening it if needed
chrome-debug http://localhost:3000/some/page   # the same, and go to that page
chrome-debug --stop              # close it
chrome-debug --keep              # skip the restart a misplaced window would need
chrome-debug --tab http://a.localhost:3000/   # open a background tab, leave the window alone
chrome-debug --window URL...     # a new window with cookies of its own, the URLs as its tabs; prints its id
chrome-debug --close-window ID   # close such a window, its cookies with it

CHROME_DEBUG_PORT (9222) and CHROME_DEBUG_PROFILE change the port and the profile. The log is at ~/.cache/chrome-devtools-mcp/chrome.log.

You rarely need it by hand: sclaude opens the feature in a background tab before each step, without pulling the window in front of whatever you are looking at.


Generated from docs/tools.md; edit it there, then rebuild with wiki/build.py.

Clone this wiki locally