get_result
Retrieves finished OCR job results as a file with path, size, and confidence checks, or returns selected page text or matching lines directly in chat without writing a file.
Instructions
Result of a finished job. Default: write it to a file and return path, size and check: words, mean confidence and uncertain words per page, notes such as probably several columns. The content stays out of the chat. pages ('3', '1-5') returns those pages' text here, search the matching lines with page numbers; neither writes a file. The file goes to ocr-results next to the document by default; pdf is searchable. Results expire after about 24 hours. In the json: confidence is 0 to 1, box is [x0,y0,x1,y1] in pixels of the page image (page width, height). verified (per word) is true only where a second reader confirmed it (scan-vlm-ctc@2); safe_ok (per page) is always false today. Judge by confidence.
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": "get_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | like 3 or 1-5 or 2,4,7-9: return the text of these pages here, no file | |
| format | No | json (default), text, md, hocr or pdf; file output only | |
| job_id | Yes | from submit_job | |
| search | No | return the lines containing this text with page numbers, no file | |
| out_dir | No | folder for the file; not allowed if the human set OCR_OUT_DIR | |
| source_path | No | original document, needed for pdf after a restart of this server |