wait_for_job
Block until a ComfyUI job finishes, returning preview images and saved file paths, or the current status JSON if timeout occurs.
Instructions
Block up to timeout seconds for a job to finish. Returns the images (preview + saved path)
when done, or the job status JSON if still running.
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": {
"job_id": "<job_id>"
},
"name": "wait_for_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| job_id | Yes | ||
| timeout | No |