execute_workflow_stream
Runs a ComfyUI workflow while streaming real-time progress updates over WebSocket, returning the final result and progress event history for execution monitoring.
Instructions
Execute workflow with streaming real-time progress updates. Requires WebSocket support. Returns result and progress event history. Use for monitoring execution progress. Requires COMFYUI_HOST and WebSocket connection.
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": {
"workflow": "<workflow>"
},
"name": "execute_workflow_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | Workflow JSON string (from build_workflow or loaded file) | |
| timeout_ms | No | Max wait in milliseconds (default 300000) |