wait
Block server-side until a job reaches a terminal state or timeout expires. Replaces multiple poll calls with a single wait, reducing polling costs.
Instructions
Block server-side until job reaches a terminal state or timeout expires.
Returns the same shape as poll(). Reduces driver-side polling cost — one wait call replaces N poll calls. If timeout hits before completion, returns the current (non-terminal) state; caller may wait() again.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||