doc.search
Search saved web pages at once using ranked full-text snippets or regex patterns; scope by site or collection to locate matching content.
Instructions
Search every saved page at once. Default mode is ranked full-text with snippets showing the match in context; terms are quoted and ANDed for you, so punctuation in a query is safe. mode:"regex" streams the stored text instead, for patterns full-text search cannot express (version numbers, identifiers, anything with wildcards). Scope with site or collection.
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": "doc.search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | fts mode: pass the query through as FTS5 syntax, for OR / NEAR / prefix*. | |
| mode | No | Default "fts" (ranked, with snippets). | |
| site | No | ||
| limit | No | ||
| query | Yes | Words to find, or a regex when mode is "regex". | |
| doc_id | No | regex mode: search inside one document. | |
| collection | No | ||
| ignore_case | No | regex mode. | |
| context_lines | No | regex mode: lines of context around each hit. | |
| snippet_tokens | No | fts mode: snippet width in tokens (default 16). |