search_document
Search an entire document for a query and return matched pages or chunks with context snippets, so you can locate relevant content without reading every page.
Instructions
Search for a query string across an entire document. Returns the matched pages/chunks with surrounding context snippets. Much more efficient than reading the whole document page by page.
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": "search_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The text to search for (case-insensitive) | |
| filePath | Yes | Absolute path to the file | |
| password | No | Optional password for encrypted/protected PDF files |