Search wiki
wiki_searchFind relevant wiki pages using hybrid BM25 and semantic vector search, returning the best match per page with path, heading path, and excerpt.
Instructions
Hybrid search over the wiki: BM25 (SQLite FTS5) and local CPU vectors combined with Reciprocal Rank Fusion. Returns the best hit per page with path, heading path, line range, and a frontmatter excerpt. Use mode='bm25' for exact terms, mode='vector' for semantic paraphrases, otherwise 'hybrid'.
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": "wiki_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Max hits (default 10). | |
| mode | No | Search method (default: hybrid). | |
| tags | No | Only pages carrying all of these tags. | |
| type | No | Restrict to a frontmatter type. | |
| layer | No | Layer: 'wiki' (default) or 'raw' (sources). | |
| query | Yes | Natural-language or keyword query. | |
| folder | No | Restrict to this folder, relative to the wiki root. | |
| status | No | Restrict to a frontmatter status. | |
| recursive | No | Include subfolders of `folder` (default true). | |
| pathPrefix | No | Restrict to paths starting with this prefix. | |
| includeText | No | Include full chunk text instead of an excerpt. |