Raw DevTools Protocol command
cdp_sendSend any Chrome DevTools Protocol command to a tab, iframe, or child session and get the raw result, including commands Chrome hides from extensions that are routed through the full DevTools channel.
Instructions
Sends any Chrome DevTools Protocol command to the tab (or to an iframe via frame ref, or a child session id) and returns the raw result. Domains Chrome does not expose to extensions are routed through the full DevTools channel automatically when it is available. Disabling a domain other tools rely on is ignored to keep them working.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | Which channel to use (default auto). | |
| frame | No | Element ref from page_snapshot or find, e.g. "e12". | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| method | Yes | Command, e.g. "DOM.getDocument" or "Page.getLayoutMetrics". | |
| params | No | Command parameters. | |
| sessionId | No | Child target session id (see page_info frames). |