recall
Retrieve relevant memories by combining vector, FTS5, and keyword search with optional filters for agent, channel, source, and project. Includes exhaustive deep recall and exclusion of known contents.
Instructions
Recall relevant memories using multi-strategy search (vector + FTS5 + keyword).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deep | No | Deep recall — disable time and completion decay for exhaustive search | |
| limit | No | Max memories to return | |
| query | Yes | Search query (empty returns recent memories) | |
| channel | No | Filter memories by channel (e.g. 'chat', 'discord'). Default: '' (all channels). | |
| agent_id | Yes | Agent identifier | |
| source_id | No | v2.4.20 per-user source filter. Empty (default) = no filter. Non-empty = prefix match against json_extract(source, '$.id'), e.g. 'discord:12345' to restrict to one Discord user, or 'discord:' to scope to all Discord-sourced memories. Episodes are skipped when set (no per-user source tagging). | |
| project_id | No | v2.4.17 γ filter. Omit → no filter (all projects). '' → global pool only. 'X' → 'X' bucket ∪ global pool. Threaded through cascade / RRF / vector / FTS / keyword paths. | |
| exclude_contents | No | Normalized content strings to exclude from results (starts-with match). Used to prevent duplication with conversation context already known to the caller. |