pdf_search
Search text in a PDF and view matches with surrounding context and page numbers. Supports case-sensitive and page range options.
Instructions
Search text across a PDF and return matches with a short surrounding snippet and the page number. The query is matched as a literal substring (case-insensitive by default). Searches all pages unless a range is given.
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 |
|---|---|---|---|
| filePath | Yes | Absolute path to the PDF file | |
| query | Yes | Literal text to find (matched as a substring) | |
| caseSensitive | No | Match case exactly. Defaults to false. | |
| pages | No | Page range, e.g. '1-5'. Defaults to all pages. |