recall_memories
Search and retrieve stored memories using natural language queries, exact IDs, or entity references, with optional graph expansion to show connected memories.
Instructions
Retrieve memories: hybrid/keyword/semantic search (query), exact fetch (memory_id), or entity lookup (entity).
Exactly one selector — query, memory_id, or entity — must be provided. Set expand_links>0 to include graph neighbors for each result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results to return. | |
| query | No | Search query (natural language or keywords). Exactly one of query/memory_id/entity must be set. | |
| entity | No | Entity lookup: return memories mentioning this entity surface form (e.g. 'src/foo.py', 'store_memory'). Paths use forward slashes. | |
| agent_id | No | Filter by agent ID. None = search all agents. | |
| time_end | No | ISO8601 end time filter. | |
| memory_id | No | Exact fetch: return the memory with this UUID (always full content). | |
| session_id | No | Filter by session ID. None = search all sessions. | |
| time_start | No | ISO8601 start time filter (e.g. '2025-01-01T00:00:00Z'). | |
| entity_type | No | With entity: filter by entity type. None = match any type. | |
| memory_type | No | Filter by memory type. None = search all types. | |
| search_mode | No | With query: 'hybrid' (keyword+semantic), 'keyword' (FTS5 only), 'semantic' (vector only) | hybrid |
| expand_links | No | Graph expansion depth: attach linked memories to each result under 'links'. 0 = off. | |
| full_content | No | Return full memory contents instead of snippets (default: contents over MEMORY_RECALL_SNIPPET_CHARS are truncated; fetch full text via memory_id). | |
| link_relation | No | With expand_links: filter links by relation type. None = all relations. | |
| min_relevance | No | Minimum cosine similarity for semantic-channel results. None = server default (MEMORY_RECALL_MIN_RELEVANCE). 0 disables. Keyword matches always survive. | |
| link_direction | No | With expand_links: traversal direction. | both |
| min_importance | No | Minimum importance score filter. | |
| exclude_superseded | No | Exclude memories marked as superseded by a newer version. Default True. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||