extract_pdf_text
Extract embedded text from PDF files and optionally cap returned characters to control output size and prevent context overflow.
Instructions
Extract text content from PDF files with optional character limiting. This tool reads PDF files and extracts their text content. Supports limiting the output size via max_chars parameter to prevent context overflow. Only works with PDF files containing embedded text - scanned PDFs without OCR won't work. Only works within allowed directories.
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": "extract_pdf_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to PDF file within allowed directories | |
| max_chars | No | Maximum characters to return (default: unlimited) |