read_pdf
Extract text from PDFs, including scanned pages via OCR, without screenshotting each page. Specify page ranges to read only what you need.
Instructions
Read a PDF as text, scanned ones included — far cheaper than screenshotting page by page.
Args:
path: Path to the PDF, e.g. "~/Downloads/MATH117-L3-F26-Fong.pdf".
pages: Which pages, e.g. "1-5", "3", "2,4,7". Omit for the whole file.
ocr: Read scanned pages with OCR when they have no text layer (slower, ~3s a page).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "read_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| path | Yes | ||
| pages | No |