poll_job
Block until a document processing job reaches a terminal state, using configurable polling intervals and timeouts to avoid manual retries.
Instructions
Poll an asynchronous DocuProx job until it reaches a terminal status (COMPLETED, FAILED, or ERROR) or a timeout is reached. Useful to block until a job is done without manual retries.
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": "poll_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | UUID of the job to poll. | |
| timeout_ms | No | Max wait time in ms (default: 300000). | |
| interval_ms | No | Polling interval in ms (default: 3000). |