pdf_search
Search PDF documents for any text or regex pattern, returning each match with page numbers and surrounding context for easy reference.
Instructions
Search for text in a PDF. Returns all matches with page numbers and surrounding context. Supports plain text and regex search.
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>",
"query": "<query>"
},
"name": "pdf_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or regex pattern to search for | |
| regex | No | Treat query as a regex pattern (default: false) | |
| filePath | Yes | PDF file path | |
| contextChars | No | Characters of context around each match (default: 60) | |
| caseSensitive | No | Case-sensitive search (default: false) |