cdp_command
Send raw Chrome DevTools Protocol commands to a chosen browser tab, target, or extension, while blocking destructive calls to protect browser state.
Instructions
Raw CDP can cause side effects in a tab, extension target or the entire browser profile. Choose session_id (client:tabId), tab_id (number or composite), extension_id or target_id deliberately. A cross-process iframe can use target_id from DOM.describeNode.frameId of its exact parent-page element; verify the frame origin and control before input. Listed high-risk methods are blocked before dispatch unless mode=lab AND operator env BROWSERTAP_ALLOW_UNSAFE_CDP=1; safe always blocks them (raw_cdp_blocked, delivery_state=undelivered, retry_safe=false, retryable=false). This guard prevents common destructive calls; allowed CDP/JavaScript can still change pages or profile state. Inspect state after uncertain delivery before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| tab_id | No | ||
| timeout | No | ||
| target_id | No | ||
| session_id | No | ||
| params_json | No | {} | |
| extension_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||