job_status
Check OCR job state and progress in one call, waiting up to 300 seconds; when complete, save the result as JSON, text, Markdown, hOCR, or PDF.
Instructions
State and counts of a job. Holds until the job is done or wait_seconds (0 to 300) are over, and reports progress meanwhile: one call is enough, do not poll in a loop; if state is still running call again. When state is done, check problem (pages failed or not run) and tell the human. format (json, text, md, hocr, pdf) saves the result when done.
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_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | json, text, md, hocr or pdf: save the result when done | |
| job_id | Yes | from submit_job | |
| out_dir | No | folder for the result file; not allowed if the human set OCR_OUT_DIR | |
| wait_seconds | No | 0 to 300: hold until the job is done |