Search PDF
searchSearch a PDF for a substring and return each hit's page, offset, and surrounding text. Use for grep-style discovery before full extraction.
Instructions
Find a substring across the whole PDF. Returns each hit's page, offset within the page, and a snippet of surrounding text. Use for grep-style discovery before extracting full text.
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>",
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a PDF on the local filesystem. | |
| query | Yes | Text to search for. | |
| maxHits | No | Cap the number of hits returned (default 200). | |
| contextChars | No | How many characters of surrounding text to include per hit (default 60). | |
| caseSensitive | No | Case-sensitive match. Default false. |