mem_context
Retrieve past session context to see recent prompts and observations, enabling quick recovery of prior work at session start.
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 |