execute_chain
Run multiple ComfyUI workflows in sequence, passing output images between steps (e.g., txt2img → upscale → img2img). Supports saved workflow names, per-step params, and stop-on-error.
Instructions
Execute a chain of workflows in sequence. Each step runs after the previous completes. Use inputFrom and outputTo to pass the output image from one step to the next (e.g. txt2img → upscale → img2img). Steps can use workflow JSON or saved workflow name. Prefer saved workflow name (string) for large workflows to avoid ENAMETOOLONG in some clients. 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": {
"steps": "<steps>"
},
"name": "execute_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Chain steps | |
| timeout_ms | No | Per-step timeout (default 300000) | |
| stop_on_error | No | Stop chain on first failure (default false) |