execute_batch
Run multiple ComfyUI workflows in one batch, submit each for completion polling, and optionally control concurrency or stop on first error.
Instructions
Execute multiple workflows in batch. Submits each workflow and waits for completion (polling). Optional concurrency and stop_on_error. Requires COMFYUI_HOST.
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": {
"workflows": "<workflows>"
},
"name": "execute_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflows | Yes | Array of workflow JSON strings | |
| timeout_ms | No | Per-workflow timeout in ms (default 300000) | |
| concurrency | No | Max workflows running at once (default 1) | |
| stop_on_error | No | Stop batch on first failure (default false) |