search_memories
Query persistent project-scoped memory for facts, rules, and lessons relevant to the current task; results stay scoped unless you widen to all projects.
Instructions
Search your persistent memory store for facts, rules, and lessons relevant to the current task. CALL THIS: at the start of every session, before answering questions about past work, before applying preferences the user may have expressed before, or whenever you are unsure whether you have prior context on a topic. SCOPED BY DEFAULT: results come from the current project's family plus global (project-less) memories — other projects' memories never appear unless you widen. To widen: pass all_projects=true to search the entire store (each hit then carries its 'project' label), or pass project= to hard-filter to one specific project. The resume digest and blocks show a memory index with counts ('+N more on ') — those topics are guaranteed to return results here; the injected blocks are a teaser of this store, not its full depth. Returns memories ranked by relevance — only what matters, not everything. Superseded (corrected/replaced) memories are hidden by default. This is faster and more relevant than reading individual memory files.
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_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural-language description of what you want to recall. Examples: 'user preferences for code style', 'how does the Instagram pipeline work', 'what trading rules should I follow' | |
| top_k | No | Max results to return (default 8, max 30). Use 15-20 for broad topic discovery. | |
| format | No | Output format. 'json' (default) is universal and works with all LLMs. 'toon' is a token-efficient sigil format — use only if you know the TOON spec. | json |
| project | No | Hard-filter to exactly one project's memories. Usually UNNECESSARY — searches are already scoped to the current project's family + global memories. Set only to look at a specific other project. | |
| type_filter | No | fb=feedback (corrections, preferences, how the user likes to work), us=user (who the user is, their role, expertise, goals), pj=project (active projects, goals, decisions, deadlines), rf=reference (pointers to external systems, URLs, tools), cn=convention (code style, naming, architecture rules), lx=lesson (lessons learned, post-mortems, 'we got burned by X'), co=core (the per-project operating guide — which tools/skills/commands to reach for; always injected at session start, subordinate to the repo's own rules), tr=tracker (LIVE STATUS of exactly one entity — a deploy, draft, migration, campaign. One tracker per entity, slug '<entity>-status', tags naming the entity; UPDATE it by re-saving the same slug whenever the state changes. Trackers render as the status board at session start; memgit is the authority for this status, files are downstream) | |
| all_projects | No | Search the ENTIRE store instead of the default scope (current project family + global). Every hit carries its 'project' label so cross-project results are attributable. | |
| include_superseded | No | Also score memories that a newer memory supersedes. Default false — the current head of each correction chain is what you want; set true only for history archaeology. |