Recall memories
zenbrain_recallSearch long-term memory across episodic, semantic, procedural, and core layers to find relevant past-session context before answering. Returns ranked results by score, id, and layer.
Instructions
Search long-term memory for anything relevant to a query. By default it searches the episodic, semantic, procedural and core layers; working memory (the most recent stores, held only while the server runs, up to five results) is searched only when named in layers. Returns results sorted by score, each with its id and the layer it came from; zenbrain_forget takes both. The score runs from 0 to 1 and says how well a result matches the query; a layer in which nothing matches returns recent memories (or its most successful procedures) at 0, behind every hit, and minScore above 0 leaves them out. Every core block scores 0.5 or 0.8, so a block can rank above a weak hit. Use this before answering when the user refers to something from an earlier session. To see how much is stored rather than what, use zenbrain_health; to save something, use zenbrain_store.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many results to return at most, after ranking (default 10). | |
| query | Yes | What to look for, in plain language. | |
| layers | No | Restrict the search to these layers. Defaults to episodic, semantic, procedural and core; add 'working' to include the most recent stores held in memory (up to five, ranked by the query). | |
| minScore | No | Leave out results scoring below this value (default 0 keeps all). Any value above 0 drops the score-0 fallbacks that a layer returns when nothing in it matches. | |
| minConfidence | No | Leave out results whose confidence is below this value. Applied before the final ranking, so fewer than `limit` results may come back. Facts use their stored confidence, procedures their success rate; core blocks, episodes and working-memory items count as 1 and are kept. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many memories were returned. | |
| results | Yes | Memories sorted by score (0 to 1), highest first; 0 means nothing in that layer matched. | |
| skipped | Yes | Rows without readable content that this server left out of `results`. When recall finds more than one row, the coordinator drops such rows while deduplicating, before they reach this count. |