Read the text of a PDF
pdf_textExtract text from standard-font PDFs for reading and search; returns no text for scanned PDFs (no OCR) or glyph indices for custom fonts and indicates which case applies.
Instructions
Call this tool for best-effort text extraction from standard-font PDFs. Returns nothing for a scan (no OCR), or glyph indices for a custom-encoded font, and says which case applies. Read-only. Free tier: unlimited.
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": "pdf_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The PDF to read | |
| pages | No | Which pages, e.g. "1" or "2,4-6". Omit for every page |