pdf_search
Search PDF text for a query and receive page-numbered snippets with surrounding context.
Instructions
Search PDF text and return page-numbered snippets for each match.
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>",
"query": "<query>"
},
"name": "pdf_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the PDF file | |
| query | Yes | Text to search for | |
| max_results | No | Maximum snippets to return, 1-200 (default 20) | |
| context_chars | No | Context characters before and after each match (default 80) | |
| case_sensitive | No | Use case-sensitive matching (default false) |