launchChrome
Launch a dedicated Chrome with remote debugging, auto-detecting active ports. Use dryRun to preview, or set URL, port, and profile options.
Instructions
[STEP 1] Launch a dedicated Chrome instance with remote debugging enabled (default port 9222). Uses --user-data-dir=~/.chrome-debug-profile so your normal Chrome keeps running (dual-instance). Auto-detects if the debug port is already active and skips launch (alreadyRunning=true). Use dryRun=true to preview the command — show it to the user and ask for confirmation before executing. Set openDevTools=true to automatically open DevTools panel for every new tab. If automatic launch does not succeed, relay the returned command to the user and ask them to run it manually. Relay the "_ui" field from the response to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to open immediately after launch | |
| port | No | Remote debugging port (default 9222) | |
| dryRun | No | If true, return the launch command without executing it | |
| chromePath | No | Chrome executable path. Overrides platform defaults and CHROME_PATH/GOOGLE_CHROME_BIN. | |
| userDataDir | No | Profile directory for the debug instance (default ~/.chrome-debug-profile) | |
| openDevTools | No | If true, adds --auto-open-devtools-for-tabs so DevTools opens automatically for every new tab |