document_id. After that, use one of the status tools until the export is complete or failed.
capout_document_status
Use this for a one-shot status check.capout_wait_for_document
Use this when you want the agent UI to wait and stream progress for a bounded window.max_wait_ms above 110000.
If one wait window ends and the document is still in progress, call capout_wait_for_document again immediately.
Example output
Both tools return a terminal-friendly export panel instead of raw JSON. A completed export looks like:Terminal state
Treat the workflow as finished when the returned panel indicates a terminal result. For successful runs, expect:STATUS: COMPLETETerminal : YESWorkflow Complete : YES- Contractor and Carrier URLs plus the
capout-api-keyheader requirement
Terminal : NO is authoritative even if an upstream stage already
reports workflow completion. Keep calling one of these tools until the durable
result is terminal. When it completes, give the user the friendly download URLs
and authentication guidance directly; do not merely say that processing finished.