Skip to main content
CapOut processing calls return quickly with a 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.
Never send 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: COMPLETE
  • Workflow Complete : YES
If the document is still running, keep calling one of these tools until it reaches a terminal state.