enqueue_workflow
Submit a ComfyUI workflow for immediate execution and get the prompt ID and queue position without waiting for completion.
Instructions
Submit a ComfyUI workflow for execution and return immediately with the prompt_id and queue position. Does not wait for completion. Use get_job_status to check progress later, or get_history to retrieve results and images after completion.
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": "enqueue_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | ComfyUI workflow in API format (node ID -> {class_type, inputs}) | |
| disable_random_seed | No | If true, do not randomize seed values |