Search PDF
searchSearch a PDF for a substring. Each hit returns its page, offset, and a context snippet for grep-style text discovery.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a PDF on the local filesystem. | |
| query | Yes | Text to search for. | |
| caseSensitive | No | Case-sensitive match. Default false. | |
| contextChars | No | How many characters of surrounding text to include per hit (default 60). | |
| maxHits | No | Cap the number of hits returned (default 200). |