Extract PDF text
read_pdf_textExtract text from a PDF, whole or a page range, as numbered lines with page markers. Use it for text-based PDFs; for scanned pages, use read_pdf_page.
Instructions
Text of a PDF, whole or a page range, as numbered lines with page markers (the same numbers as read_text_file). Much cheaper than page images — prefer it; for scans use read_pdf_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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| last_page | No | ||
| first_page | No |