Get memory context
get_memory_contextPack a prompt with tiered memories: full working memory, summaries for contextual, keys for longterm, and filter episodic entries by location, task, or time.
Instructions
Get a context-optimized view of memories: full working memory, summaries for contextual, and keys only for longterm. Read-only. Filter episodic memories by where with location and task, which read the metadata.episode convention {location, task, outcome}, and by when with after and before, which bound memory_at exactly as search_memory does; entries carrying a metadata.recording come back with their recording links resolved. Use this to pack a prompt; use read_memory for one key, search_memory to filter by text or tags, and get_memory_tree for parent-child task graphs. Pass playbook_id as the UUID or GUID of the playbook this call should target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | Only episodic memories from this task (metadata.episode.task) | |
| after | No | Inclusive lower bound on memory_at, with a timezone | |
| before | No | Inclusive upper bound on memory_at, with a timezone | |
| location | No | Only episodic memories recorded at this place (metadata.episode.location) | |
| max_items | No | Maximum items per tier | |
| expand_keys | No | Keys to show full content regardless of tier | |
| playbook_id | Yes | UUID or GUID of the target playbook | |
| tags_filter | No | Only include memories with these tags | |
| include_tiers | No | Tiers to include (default: working, contextual) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tiers | Yes | ||
| total_items | Yes |