Attach to Chromium
browser_attach_cdpAttach to a running Chromium browser via CDP endpoint, select a tab by ID, URL, title, or index, and expose its live context for debugging or tracing.
Instructions
Use when an already-running Chromium instance contains the page that must be diagnosed and a tab needs to be selected by page ID, URL, title, or index. Preconditions: the CDP endpoint and target browser must be explicitly authorized and reachable. Next: confirm the selected page with browser_get_state, then observe one action or start a multi-step trace. Sensitivity: attaching exposes the live browser context and any data visible in the selected tab.
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": {
"cdpUrl": "<cdpUrl>"
},
"name": "browser_attach_cdp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cdpUrl | Yes | ||
| pageId | No | ||
| activate | No | ||
| targetIndex | No | ||
| urlContains | No | ||
| titleContains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |