job_wait
Waits for a job to finish up to a timeout, relays progress messages as notifications, and returns its state; a timeout returns Status running instead of an error.
Instructions
Waits for a job to end, up to the timeout, sending its progress messages as progress notifications, and returns its state. A timeout is a result (Status running), not an error.
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": {
"jobId": "<jobId>"
},
"name": "job_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | The job id, e.g. job-7. | |
| timeoutSeconds | No | How long to wait, up to 1800 seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| error | Yes | ||
| jobId | Yes | ||
| result | Yes | ||
| status | Yes | ||
| message | Yes | ||
| endedUtc | Yes | ||
| startedUtc | Yes |