Get reading context
get_reading_contextRead the active Skim PDF page context: current document, selection, red-underlined annotations, text layer, and page image to ground responses.
Instructions
Everything about what the reader is looking at, in one call.
Returns the front document (name, path), its current page, the live text selection (explicitly empty when nothing is selected), pending red underlines with their quoted text, page, color and comment, the page's text layer, and a PNG of the page with the selection (blue, only when it is on the rendered page) and the pending underlines on that page (red) outlined. The image is the ground truth for math; the text layer may garble formulas. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page to render. Default: the selection's page, else the current page. | |
| document_path | No | Path of an open document (see get_open_documents). Default: front. | |
| include_image | No | Set false to skip rendering the page PNG. |