wait_for_extraction
Waits for an extraction job to complete, fail, or be cancelled, or until timeout, then returns its status without result rows. Call again after a timeout, then fetch results separately.
Instructions
Wait until one job finishes (completed, failed or cancelled) or the timeout passes, then return its status without result rows. Free and read-only. Use it after create_extraction, or for a job id from get_batch or get_plan. Returns timed_out and job; if timed_out is true, call it again. Then read the data with get_extraction_result.
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_extraction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job id: job.id from create_extraction, job_id from extract_now, or an id listed by list_extractions, get_batch, get_schedule or get_plan. | |
| timeout_seconds | No | Longest time to wait, in seconds, up to 120. Default 60. | |
| poll_interval_seconds | No | Seconds between status checks, 0.5-10. Default 2. |