connect_cdp
Connect to a Chrome instance by providing its WebSocket debugger URL to enable browser automation and debugging via CDP.
Instructions
Connect to a Chrome instance via WebSocket URL. Get the URL from http://localhost:PORT/json/version or from an existing cdp-tools connection.
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": {
"wsUrl": "<wsUrl>"
},
"name": "connect_cdp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wsUrl | Yes | WebSocket debugger URL (e.g. ws://localhost:9222/devtools/page/...) |