get_job_result
Retrieve a ComfyUI job's result by prompt ID, optionally waiting up to 50 seconds for completion; repeat the call while status remains running.
Instructions
Get the result of a completed or running job by its prompt ID. Pass wait_seconds to block until it finishes (repeat the call while status is "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": {
"prompt_id": "<prompt_id>"
},
"name": "get_job_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_id | Yes | The prompt/job ID returned from run_workflow | |
| wait_seconds | No | Block up to this many seconds for the job to finish (default 0 = check once, max 50) |