Run commands in parallel
batchRun multiple commands in parallel and return all results in one call, so you can gather independent information without sequential executions.
Instructions
Run multiple commands in parallel and return all results. Each command is a binary plus an args array, executed without a shell (for a pipeline use command='sh', args=['-c', '...']). Use when you need to gather independent pieces of information in a single tool call instead of multiple sequential calls.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | No | Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elapsed | Yes | ||
| results | Yes | ||
| retained | No |