search_document
Search within a specified document to find matching text, returning relevant lines with context and approximate page numbers—so you can locate specific content without reading the entire file.
Instructions
Search for text within a document and return matching lines with context and approximate page numbers. Use this when you need to find specific content without reading the entire document. Read-only.
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": {
"filename": "<filename>",
"query": "<query>"
},
"name": "search_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query (case-insensitive) | |
| filename | Yes | The document filename to search | |
| max_results | No | Maximum matches to show (default 50, at most 500). The header always counts every match. |