wait_for_job
Poll a background job until completion or failure, with a configurable timeout and polling interval to control how long the client waits.
Instructions
Poll a background job until completion or failure with configurable timeout.
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 |
|---|---|---|---|
| job_id | Yes | ActiveJob UUID to wait for | |
| timeout_ms | No | Maximum wait timeout in milliseconds (default: 60000) | |
| poll_interval_ms | No | Polling interval in milliseconds (default: 2000) |