comfyui_run
Queue a ComfyUI workflow using friendly params, raw node overrides, or inline JSON. Optionally randomize seeds, wait for job completion, and return image outputs with previews.
Instructions
Queue a workflow on ComfyUI.
Args:
workflow: Workflow name from comfyui_workflows.
params: Friendly params defined in workflows.yaml, e.g. {"prompt": "a cat", "steps": 20}.
inputs: Raw node overrides, keyed ".", e.g. {"6.text": "a cat",
"KSampler.cfg": 6.5}.
workflow_json: An inline API-format workflow, used instead of workflow.
randomize_seed: Give seed/noise_seed inputs that were not set explicitly a new random
value (otherwise ComfyUI may return a cached result and skip execution).
wait: Block until the job finishes (or timeout seconds) and return its outputs.
timeout: Seconds to wait when wait=true (default DEFAULT_WAIT_TIMEOUT).
preview: With wait=true, also return downscaled previews of the resulting images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| inputs | No | ||
| params | No | ||
| preview | No | ||
| timeout | No | ||
| workflow | No | ||
| workflow_json | No | ||
| randomize_seed | No |