wait_job
Pause for up to 600 seconds, or return early when a specified job reaches done or error. Poll model or agent jobs without busy-looping.
Instructions
Sleep for a number of seconds (max 600), then return. With job_id, returns early as soon as that job reaches done/error — use to poll pull_model/run_local_agent without busy-looping get_job.
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": {
"seconds": "<seconds>"
},
"name": "wait_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | Return early when this job finishes | |
| seconds | Yes | Seconds to wait (fractions allowed) |