Read a PDF
read_pdfRead a local PDF: extract text from pages with a text layer, and use a local vision model for scanned or image-only pages. Optionally limit pages or ask a specific question to avoid full transcription.
Instructions
Read a local PDF. Pages with a text layer are extracted exactly and for free; scanned or image-only pages are rendered and read by a local vision model. Use pages (e.g. "1-5" or "2,7") to limit the work on long documents, and question to search for one fact instead of transcribing everything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto (default): text layer where present, vision for scanned pages. text: never call the model — fastest, exact, but blind to figures. vision: render every page and read it visually — use when the text layer is garbled or you need to understand figures. | |
| path | Yes | Absolute or relative path to the PDF file on this machine. | |
| pages | No | 1-based page selector, e.g. "1-5", "2,7,9", or "3". Omit for all pages (capped). | |
| question | No | Optional specific question. Omit for a full transcription. |