browser_connect
Connect to Chromium, Firefox, or WebKit browsers with device emulation, proxy, and geolocation options; use a CDP URL to reuse existing Chrome sessions with logins intact.
Instructions
Connect to a browser. Supports Chromium/Firefox/WebKit, device emulation, proxy, geolocation. Use cdpUrl to reuse existing Chrome sessions with all logins intact.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cdpUrl | No | CDP URL, e.g. http://localhost:9222 | |
| device | No | Device preset (e.g. 'iPhone 15', 'Pixel 7') | |
| channel | No | Use installed browser: chrome, msedge, chrome-beta, msedge-dev | |
| headless | No | Run headless (default: false) | |
| proxyServer | No | Proxy URL (http://proxy:8080 or socks5://proxy:1080) | |
| userDataDir | No | Chrome user-data-dir for session reuse | |
| browserEngine | No | Browser engine | |
| viewportWidth | No | ||
| executablePath | No | Chrome/Edge executable path | |
| viewportHeight | No |