View Document
view_documentVisualize and verify PDF extraction by rendering page images with bounding-box overlays and a clickable block list.
Instructions
Show the VISUAL extraction of a parsed okraPDF document: page images with colored bounding-box overlays over the extracted blocks that have bbox data (a bounded set per page), plus a clickable block list (click a box to highlight its text, and vice versa). Use after upload_document to let the user see and verify the extraction. Pass document_id and optional pages. For the structured text output instead (parsed nodes as plain reading HTML, no images), use inspect_html.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Pages to render, 1-indexed. Range ("1-5"), list ("1,3,7"), or single ("2"). Defaults to the first 3 pages. Capped at 8. | |
| document_id | Yes | okraPDF document ID to visualize (e.g. doc-abc123). |