connect
Attach to an existing Chrome instance running with --remote-debugging-port using an HTTP or WebSocket URL, so you can debug it through the DevTools Protocol.
Instructions
Connect to an existing Chrome instance running with --remote-debugging-port.
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": {
"url": "<url>"
},
"name": "connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | HTTP URL (e.g., http://localhost:9222) or WebSocket URL | |
| targetId | No | Specific target ID to connect to. Connects to first page if not specified. |