Read the text of a PDF
pdf_textCall 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 | Name of the PDF to read | |
| pages | No | Which pages, e.g. "1" or "2,4-6". Omit for every page |