search_memory
Search stored memories using hybrid vector + BM25 to retrieve relevant past conversation context at the start of each user turn; newest versions appear first and Lite entries expire after 7 days.
Instructions
Hybrid (vector + BM25) search over stored memories. Call this at the start of every user turn. Each hit shows its saved= time; when several versions of the same content appear, the newest is listed first and is the current one. When fewer than min_results (default 3) rows pass the relevance floors, the closest dropped rows are added under 'Possibly related (weak matches — may be unrelated)': they are often unrelated — use one only when it is actually relevant to the question; if it is not, ignore it and do not mention it. NOTE: Lite memories expire 7d after they were saved.
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_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default: config search_result_limit). | |
| query | Yes | Search query (natural language or keywords). | |
| since | No | §4.3.1 — ISO 8601 date or datetime (e.g. '2026-05-01' or '2026-05-01T09:00:00+09:00'). Only entries saved ON OR AFTER this timestamp are returned. Date-only values and values without an offset are read in the server's local time (the clock of saved=); date-only means 00:00:00. An unreadable value is an error. | |
| until | No | §4.3.1 — ISO 8601 date or datetime. Only entries saved ON OR BEFORE this timestamp are returned. Read like since; date-only means 23:59:59.999999 local time. | |
| session_id | No | Optional project/task grouping key. Rows whose stored session_id matches this value are boosted in ranking (b_session_match=1.0); non-matching rows are dampened (b_session_mismatch=0.6). Pass the same session_id used at save time to surface that project's memories above unrelated rows. Leave blank to use the server default (N3MC_SESSION_ID env var, or per-process UUIDv4). |