connect_browser
Attach to or launch a real Brave, Chrome, or Chromium browser with your logged-in sessions and cookies to test extensions on authenticated live websites.
Instructions
DEFAULT/PREFERRED way to test an extension — connect to your real Brave/Chrome/Chromium browser with your actual logged-in sessions, cookies, and tabs preserved. Use this whenever testing requires navigating a real website as a logged-in user (job boards, email, social platforms, anything gated behind an account) — most extensions that interact with live sites need this. Only skip it in favor of load_extension's throwaway browser if the extension is fully self-contained (on-device/offline models, local-only tools, no real-account dependency). Use action 'scan' first to see what's available, then 'connect' to attach to a running browser or 'launch' to start one with debugging enabled.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "connect_browser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | CDP debug port to connect to (for 'connect' action). Defaults to 9222. | |
| action | Yes | 'scan' — list running debuggable browsers and installed browsers. 'connect' — attach to a browser already running with --remote-debugging-port. 'launch' — start an installed browser with your real profile and remote debugging, then connect. 'list_extensions' — list all installed extensions with their IDs and names. | |
| debug_port | No | Port to use for remote debugging when launching (for 'launch' action). Defaults to 9222. | |
| browser_name | No | Which browser to launch (for 'launch' action). Defaults to 'Brave'. | |
| extension_id | No | Extension ID (32 lowercase chars) or name substring to target (for 'connect' and 'launch' actions). Overrides auto-detection — pass the name (e.g. 'AudiTex') or full ID to pick the right extension when multiple are installed. | |
| browser_name_for_extensions | No | Which browser's extensions directory to scan (for 'list_extensions' action). Defaults to 'Brave'. |