session_snapshot
Record key session details—goal, decisions, blockers, next steps—into a token-efficient snapshot to prevent context loss during long sessions or compaction.
Instructions
Capture current session state as a compact markdown block (<200 tokens). Call before compaction, when switching direction, or periodically in long sessions. Model provides the facts, tool formats them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"goal": "<goal>"
},
"name": "session_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Session goal — what and why | |
| decisions | No | Key decisions made and why (e.g., "removed sysfee step — caused double counting"). Prevents revisiting rejected approaches. | |
| confirmed | No | Established facts (what has been verified) | |
| files | No | Relevant file paths | |
| blocked | No | Current blocker or obstacle | |
| next | No | Next step to take |