cdp
Send raw Chrome DevTools Protocol commands to a selected page to automate browser actions or inspect DOM, network, and console.
Instructions
Send any raw Chrome DevTools Protocol command to a page.
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>"
},
"name": "cdp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | e.g. DOM.getDocument | |
| pageId | No | Targets a specific page by ID. Defaults to the selected page. | |
| params | No |