read_pdf
Read text from a specific page range in a PDF file without loading the entire document into memory.
Instructions
Reads text from a specific range of pages in a PDF file in a memory-efficient way. It streams pages one by one without loading the entire document into memory.
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": {
"filepath": "<filepath>",
"start_page": "<start_page>",
"end_page": "<end_page>"
},
"name": "read_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_page | Yes | The page number to stop reading at (1-based index, inclusive) | |
| filepath | Yes | Absolute path to the PDF file to read | |
| start_page | Yes | The page number to start reading from (1-based index) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |