search
Finds pages in a local PDF that mention a query, returning matching page numbers and snippets so agents can decide which pages to read in full.
Instructions
The pages of a local PDF that mention query, with a snippet each.
pages lists every matching 0-based page. snippets gives up to three
windows of text around the match on each of the first twenty matching
pages, so an agent can decide which pages to read in full with
extract_markdown. Matching is case-insensitive on the text layer; a scanned
page cannot match.
Args: path: The PDF's absolute path on this machine. query: The text to look for, as written in the document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |