Attach trusted CDP input
cdp_attachAttach trusted CDP input to a claimed tab, enabling automated clicks, typing, and keypress actions for browser control.
Instructions
Attach trusted CDP input to a claimed tab. While attached, click, type, keypress, click_at, and matching perform_actions steps use trusted CDP input. Requires the popup enableCdp toggle, a claimed tab, and an allowed origin. The debugger permission is required in the manifest. Chrome shows a debugging banner on the tab. Repeating attach on the same tab refreshes the TTL without tearing down the socket.
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": {
"sessionTabId": "<sessionTabId>"
},
"name": "cdp_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttlMs | No | Auto-detach TTL in milliseconds. Defaults to 600000 (10 minutes). | |
| sessionTabId | Yes | Claimed tab session id returned by claim_tab. |