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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "comfyui_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| inputs | No | ||
| params | No | ||
| preview | No | ||
| timeout | No | ||
| workflow | No | ||
| workflow_json | No | ||
| randomize_seed | No |