pdf_extract_text
Extract text from PDF files, returning the first 10 pages by default to stay within LLM context limits. Specify a page range to retrieve specific pages.
Instructions
Extract text content from a PDF file. Returns first 10 pages by default to avoid exceeding LLM context limits. Use the 'pages' parameter for specific pages.
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>"
},
"name": "pdf_extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the PDF file | |
| pages | No | Page range, e.g. '1-5' or '1,3,5'. Defaults to first 10 pages. |