browser_batch
Execute multiple CDP commands in a single batch request to a browser tab, reducing round trips and improving efficiency.
Instructions
Run multiple extension/CDP commands in one request.
Args: commands: Command objects supported by the extension, such as {"cmd":"cdp","method":"DOM.getDocument","params":{"depth":1}}. tab_id: Optional tab ID inherited by commands that omit tabId. timeout: Seconds to wait for the batch result.
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": {
"commands": "<commands>"
},
"name": "browser_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | ||
| timeout | No | ||
| commands | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |