get_pdf_chunks
Extract text from PDFs in overlapping chunks for agent-based processing of long documents. Adjust chunk size, overlap, and chunk range to manage memory and context limits.
Instructions
Read PDF text in stable overlapping chunks for long-document Agent workflows.
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": {
"file": "<file>"
},
"name": "get_pdf_chunks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| overlap | No | Overlapping characters between chunks (default 200) | |
| chunk_size | No | Characters per chunk, 50-20000 (default 2000) | |
| max_chunks | No | Maximum chunks to return, 1-200 (default 20) | |
| start_chunk | No | Zero-based first chunk index (default 0) |