Interact with the open document viewer
interactDrive the open PDF viewer: navigate pages, focus nodes, and highlight text. Run single or batched actions without reopening the document.
Instructions
Drive the document viewer the user already has open (from view_document): navigate, highlight a node, or auto-highlight text with the pdf-server-style highlight_text arguments query/page/color/content. Pass document_id plus view_uuid or viewUUID from the view_document result. Use commands or actions for ordered batches. Do NOT call view_document again to navigate — that opens a separate viewer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-indexed page for action="navigate". | |
| color | No | Highlight color for action="highlight_text", e.g. "#FFFF00". | |
| query | No | Text to find/highlight. For highlight_text, the viewer auto-finds matching text geometry. | |
| action | No | Single viewer action. Use commands for batching. | |
| actions | No | Alias for commands, matching pdf-server multi-action interact calls. | |
| content | No | Tooltip/label content for action="highlight_text". | |
| node_id | No | Block/node id to focus for action="highlight" (from a view_document overlay). | |
| commands | No | Batch of viewer actions, processed sequentially. | |
| viewUUID | No | Alias for view_uuid, matching the pdf-server interact argument shape. | |
| view_uuid | No | The open viewer's view_uuid (from the view_document result). | |
| document_id | Yes | okraPDF document ID being viewed. | |
| match_index | No | 0-indexed match for action="search_navigate". |