end_session
End active work sessions and record final outcomes. Marks sessions as completed while saving optional summaries of accomplishments, status updates, or abandoned work.
Instructions
End a session and record what was accomplished.
Marks the session as completed and optionally saves a summary.
Consider calling promote_session first to save key learnings
as permanent memories before ending.
Use this when:
Work is finished:
end_session("s001", summary="Auth migration complete, all tests passing")Abandoning a session:
end_session("s001", summary="Deprioritized — will revisit Q3")Wrapping up for the day with a status update
The session data is retained for 48 hours after completion, then auto-expires. Promoted memories persist forever.
Args: session_id: The session to complete (e.g., "s001"). summary: Optional final summary of the outcome. If omitted, the session closes without a summary. Include what was accomplished and any follow-up items.
Returns: The final session state with status "completed". Returns an error if the session doesn't exist or was already ended.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| summary | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |