Job Wait
job_waitBlocks until a background job finishes and returns its final state and result; if the timeout expires, returns the job as still running so you can call again.
Instructions
Block until a job finishes, then return its final state and result.
If timeout_s elapses first, returns it still running: call again to keep waiting.
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": "job_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Id from a write that returned status='started' (or job_list). | |
| timeout_s | No | Seconds to wait. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| error | No | ||
| label | Yes | ||
| state | Yes | ||
| result | No | ||
| progress | No | ||
| started_at | Yes | ||
| finished_at | No |