cdp_batch
Execute a batch of raw CDP commands across browser targets with complete policy validation before dispatch, preventing cross-target side effects and blocking unsafe operations.
Instructions
Raw CDP batches can cause side effects across multiple targets or the entire browser profile. Pass the full JSON object with cmd='batch'; child targets may inherit or override top-level tabId. Policy checks complete for the whole batch before dispatch. Listed high-risk methods require 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). Allowed CDP/JavaScript can still change pages or profile state. Inspect state after uncertain delivery before retrying a batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_json | Yes | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||