comfyui_run_workflow
Run any ComfyUI workflow by submitting its JSON. Wait for execution to get outputs and status, or receive a prompt ID for non-blocking processing.
Instructions
Submit an arbitrary ComfyUI workflow for execution.
See also: comfyui_run_workflow_stream for a streaming variant that emits
per-node progress events while the workflow executes.
Args:
workflow: JSON string of a ComfyUI workflow (API format).
Each key is a node ID, each value has 'class_type' and 'inputs'.
wait: If True, block until execution completes and return structured result
with status, outputs, and elapsed time. If False (default), return
immediately with just the prompt_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| workflow | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||