submit_job
Starts an OCR job for a quoted document using a human-confirmed budget, then optionally waits and saves the result as JSON, text, Markdown, hOCR, or PDF.
Instructions
Start the job of a quote (document, pipeline and price are bound to the quote_id; the budget is the quoted price). You are asked to set human_confirmed=true only after the human saw say_to_human and really agreed (the server cannot check it); if the client can ask the human itself it asks when you leave it false. With wait_seconds and format the result is saved like get_result. Without wait_seconds it returns at once: use job_status, keep the job_id.
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": {
"quote_id": "<quote_id>"
},
"name": "submit_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | json, text, md, hocr or pdf: save the result when done (needs wait_seconds) | |
| out_dir | No | folder for the result file; not allowed if the human set OCR_OUT_DIR | |
| quote_id | Yes | from quote; valid for one job, one hour | |
| client_ref | No | your own reference, kept with the job | |
| wait_seconds | No | 0 to 300: hold until the job is done; 0 returns at once | |
| human_confirmed | No | true only after the human saw say_to_human and agreed |