cdp_command
Send raw Chrome DevTools Protocol commands when higher-level tools lack a needed method, returning the raw result in the tab’s persistent session.
Instructions
Send a raw CDP command and return its raw result — escape hatch.
Use when the higher-level tools don't cover what you need. method is any
CDP method (e.g. "Page.captureScreenshot", "DOM.getDocument",
"Network.enable"); params are its parameters. Runs in the given
tab's persistent session, so objectId/nodeId values and domain
state (e.g. Network.enable) carry over between calls while the tab is
open and the connection lives.
Events are not delivered. So Fetch.enable, Debugger.pause,
Target.setAutoAttach {waitForDebuggerOnStart: true} and
Page.setInterceptFileChooserDialog {enabled: true} hang the tab until
undone (Fetch.disable, Debugger.resume,
…{waitForDebuggerOnStart: false}, …{enabled: false}) or the tab is
closed. Browser.* and Target.* are not supported; their results
are undefined. Returns {"tab_id", "method", "result"} or
{"error": ...}.
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": {
"method": "<method>",
"tab_id": "<tab_id>"
},
"name": "cdp_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| params | No | ||
| tab_id | Yes |