search
Search files, directories, or URLs for text across PDFs, Office docs, EPUBs, HTML, and images. Returns each hit with file, page or slide, and a highlighted snippet.
Instructions
Search documents for text: one file, many files, whole directories (recursive, .gitignore aware), or URLs, across every format read supports. Returns each hit as file + page/slide/sheet + a snippet with the match in bold. mode auto (default) finds the exact phrase and falls back to BM25-ranked passages when there is none; literal or ranked force one. Narrow directories with glob, e.g. "*.pdf".
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": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Only search files matching this glob inside directories, e.g. "*.pdf" or "reports/**". | |
| mode | No | auto (default): exact phrase, falling back to ranked passages when nothing matches. literal: exact phrase only. ranked: BM25 over the query words. | |
| query | Yes | Text to find. | |
| sources | No | Files, directories (searched recursively, .gitignore respected), or URLs. Default: the current directory. | |
| whole_word | No | ||
| max_results | No | Maximum hits to return (default 20). | |
| context_chars | No | Snippet context characters on each side (default 80). | |
| case_sensitive | No |