browser_launch
Launch Chrome, Edge, or Brave in debug mode with CDP endpoint ready for automation. Opens browsers with remote debugging enabled, waits for connection readiness, and optionally navigates to a specific URL.
Instructions
Launch Chrome/Edge/Brave in CDP debug mode and wait until the DevTools endpoint is ready. Idempotent — if a CDP endpoint is already live on the target port, returns immediately without spawning. Default: tries chrome → edge → brave (first installed wins), port 9222, userDataDir C:\tmp\cdp. Pass url to open a specific page on launch; follow with browser_connect to get tab IDs. Caveats: A Chrome session started without --remote-debugging-port cannot be taken over — close it first or use a separate profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | Which browser to launch. 'auto' tries chrome → edge → brave and picks the first installed. Ignored if a CDP endpoint is already live on the target port. | auto |
| port | No | Chrome/Edge CDP remote debugging port. | |
| userDataDir | No | Path for --user-data-dir. Using a dedicated profile avoids conflicts with your normal browser session. Default C:\tmp\cdp is safe to reuse across sessions. | C:\tmp\cdp |
| url | No | Optional URL to navigate to immediately after launch. | |
| waitMs | No | Max milliseconds to wait for the CDP endpoint to become ready (default 10000). |