End Session
session_endSaves the current session as a checkpoint with summary, state, insights, and optional phase updates so work persists for the next session.
Instructions
[ON SAVE/EXIT — YOU must call this; nothing auto-saves] Use when the user asks to save, checkpoint, summarize, end, retain, or persist the current session. Optionally pass close_phase / open_phase to update the project pipeline narrative spine in the same call.
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": {
"summary": "<summary>"
},
"name": "session_end"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Project state card, REWRITTEN every save and loaded by the next session_start. Omitted fields carry forward; [] clears a list. Soft caps (overflow truncated with … and listed in state_card.truncated): goal ≤300 chars, open_decisions ≤5×160, blockers ≤5×160, next ≤300 (defaults to trajectory), pointers ≤8×200 (paths/URLs). Hard limits (beyond these the whole save is rejected): goal and next ≤1200 chars; open_decisions and blockers ≤20 items × 640 chars; pointers ≤20 items × 800 chars. | |
| project | No | auto | |
| summary | Yes | What happened this session. Simple session: 2-3 sentences. Multi-phase session: one paragraph per completed phase (e.g. 'Phase 1 — Name: what happened. Phase 2 — Name: what happened. Decisions: X. Blockers: Y.'). Never compress a multi-phase session to 2 sentences — it makes the journal useless. | |
| insights | No | Insights learned this session. | |
| open_phase | No | Open a new pipeline phase as part of this save (e.g. when a watershed session pivots into the next strategic direction). | |
| trajectory | No | Where is the work heading next. | |
| close_phase | No | Close the currently active pipeline phase as part of this save. Provide all three reflection fields explicitly — never auto-generated. |