memory_search
Search memory notes by keywords using BM25 ranking, optional label/zone filters, and synonym expansion to return ranked snippets for recall.
Instructions
Search memory notes (BM25 + usage decay + zone priority).
Matching is lexical. The optional synonyms / keywords / related / note_line widen the query at search time: their terms score lower than the query's own words (synonyms and keywords 0.75, related and note_line 0.4), so an exact match still ranks first. Fill them when the note may use other words than the question; nothing is stored.
An optional labels list (AND) restricts hits to notes carrying
every label before ranking; an empty or omitted list never changes
scores or ordering. Returned hits carry the notes' stored labels.
Returns ranked hits with a snippet around the matched terms. Searching does not count as using a note; memory_get_note does.
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": "memory_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | restrict to one zone ('inbox' = vault root) | |
| limit | No | ||
| query | Yes | keywords (any language) | |
| labels | No | only notes carrying every 'namespace:value' label (AND); '[]' or omitted = no filter | |
| related | No | 4-8 looser terms a note answering the question might contain (broader, narrower or associated) | |
| keywords | No | 4-8 keywords for the topic in the user's other working language(s), e.g. English for a Korean query | |
| synonyms | No | 4-8 close synonyms or other wordings of the query's key words, in the query's language; not words already in it | |
| note_line | No | one short sentence written like a line of a note that would answer the question | |
| include_archive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||