mem_context
Retrieve memory context from previous sessions to recover recent user prompts, observations, and session history, enabling continuity in AI agent interactions.
Instructions
Get recent memory context from previous sessions. Shows recent sessions, user prompts, and observations to understand what was done before.
Use this at the start of a session to recover context, or when the user asks to recall past work.
Returns bounded Markdown with:
Recent sessions (last 5 with activity)
Recent user prompts (last 10)
Recent observations (configurable limit)
Memory stats (total counts)
Observation bodies are previewed by default; use mem_get(id=...) for full content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of observations to retrieve (default: 20) | |
| scope | No | Filter by scope | |
| project | No | Filter by project name | |
| max_chars | No | Output character budget; 0 disables the context cap | |
| session_id | No | Filter to a specific session | |
| recall_query | No | Optional query to append fused recall evidence without changing base context sections |