session_context
Get a complete snapshot of a session's state, including recent messages, tasks, and artifacts, to quickly understand progress and context before starting work.
Instructions
Get a compiled context view of the session. PRIMARY tool for understanding session state.
AUTOMATIC TRIGGERS - Call this when:
Joining a session and you need to understand current state
Before starting work to see what's been done
After being assigned a task to understand context
Whenever you're unsure about session status
This is the GO-TO tool for session understanding. Returns summary + recent messages
state + tasks + artifacts in a formatted view optimized for context windows.
WORKFLOW POSITION: Call after joining, before starting work, and periodically.
PARAMETERS:
session_id: Session to get context for
agent_id: Your agent ID
max_messages: Max recent messages to include (default: 20)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| session_id | Yes | ||
| max_messages | No |