read_pdf
Extract text from PDFs by path, URL, or base64, with optional page ranges to target only needed pages. Outputs per-page sections and truncates long results to fit token limits.
Instructions
Extract text from a PDF (path / url / base64). Page-aware: pass pages as a string range like "1-3,5,7-9" or an explicit array to read only the pages you need. Output is split per page with --- page N --- headers. Auto-truncates if the result would exceed the per-call token budget. Always inspect_file first to learn totalPages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| data | No | ||
| path | No | ||
| pages | No | Optional page selection. Defaults to all pages. | |
| mimeType | No |