comfyui_run_workflow_stream
Run a ComfyUI workflow and capture real-time execution events (progress, executing, executed) via websocket stream.
Instructions
Submit a ComfyUI workflow and return websocket stream events plus final status.
Uses ComfyUI's websocket stream endpoint internally to capture per-event
execution updates (for example, `progress`, `executing`, `executed`).
Events are filtered by `prompt_id` when that field is present in the
websocket payload.
See also: comfyui_run_workflow for a non-streaming variant. Use this
streaming version when you need real-time per-node progress events
(intended for tooling that surfaces progress to a user); use the
non-streaming variant for fire-and-forget submission or when you only
need the final result.
Args:
workflow: JSON string of a ComfyUI workflow (API format).
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": "comfyui_run_workflow_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||