send_cdp_command
Send raw CDP commands to the browser for advanced debugging and control, returning JSON responses. Use when specialized tools are insufficient.
Instructions
EXPERIMENTAL: Sends raw Chrome DevTools Protocol (CDP) commands to the browser for advanced use cases not covered by specialized tools. Side effects: depends on command; may modify page state, DOM, or trigger navigation. Auth requirements: subject to local-only restrictions if enabled (Page.navigate checked). Prerequisites: requires knowledge of CDP protocol; active Chrome connection. Returns: raw CDP command response as JSON. Use this only when specialized tools inadequate. Alternatives: use domain-specific tools (navigate, click_element, evaluate_js).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | CDP protocol method name (e.g., 'DOM.getDocument', 'Runtime.evaluate'). Constraints: valid CDP domain.method format. Interactions: method must be recognized by Chrome protocol version. | |
| params | No | JSON-formatted parameters for the CDP command. Constraints: valid JSON object string. Interactions: Page.navigate URLs subject to local-only restrictions; empty string or '{}' for no parameters. Defaults to: None. | |
| tab_id | No | The Tab ID of the target tab. Omit to use the active tab. | |
| instance_id | No | Chrome instance id from open_instance/list_instances. Omit for the default instance. |