Wait for job
wait_for_jobFree. Wait for a job from a paid tool: returns as soon as it finishes (or, with until "changed", as soon as its status changes), else after wait_seconds (default 45, at most 50). Call it again while finished is false. A finished job comes with its result and studio_url; show the user the first line (tokens and credits) and the studio_url. Sends progress notifications while it waits when the client asks for them.
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 |
|---|---|---|---|
| until | No | ||
| job_id | Yes | ||
| wait_seconds | No |