inject_context
Retrieve relevant observations from past sessions mid-task to refresh context without restarting. Query by topic or let session focus guide results.
Instructions
Auto-inject relevant context from past sessions at any point during work.
AUTOMATIC TRIGGERS - Call this when:
You need a refresher on past work mid-session
Starting work on a new subtask and want relevant context
User asks "what have we learned about X previously?"
Retrieves up to 50 relevant observations from previous sessions. Unlike session_start (which auto-injects), you can call this mid-session.
WORKFLOW POSITION: Call anytime you need past context, not just at session start.
PARAMETERS:
session_id: Current session ID
query: What you want context about (optional - uses session focus if not provided)
limit: Max observations to inject (default: 50)
user_id: Optional user/agent identifier used to isolate memory context
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| user_id | No | ||
| session_id | Yes |