Search notes
memory_searchSearch saved notes by keyword, semantic meaning, or both to retrieve relevant previews and IDs. Filter results by time, writer, project, or namespace, and optionally include replaced notes.
Instructions
Search saved notes and return the best matches as short previews with ids (default 20, at most 200). mode: keyword = the words you give, semantic = similar meaning (falls back to keyword if embeddings are off), hybrid = both, relevant = pass the user's whole message as query (do not combine it with when or include_replaced: that returns an error). Narrow with when, written_by, not_written_by. Replaced notes are hidden unless include_replaced=true. 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": {
"query": "<query>"
},
"name": "memory_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How to match; see the tool description. | |
| when | No | A time range, e.g. "last week". | |
| limit | No | Most results: default 20, at most 200. | |
| query | Yes | What to look for: words, a question, or (mode relevant) a whole message. | |
| detail | No | "full": every field and up to 600 body characters per note. | |
| namespace | No | Project to search. Default: default. | |
| written_by | No | Only notes written by this writer. | |
| not_written_by | No | Leave out notes written by this writer. | |
| include_replaced | No | Also return notes that a newer note has replaced. |