end_session
End the current session with automatic knowledge preservation by saving a summary and optionally exporting recent findings to the library.
Instructions
Gracefully end the current session with automatic knowledge preservation. COMPOSITE TOOL.
AUTOMATIC TRIGGERS - Call this when:
User indicates work is done ("done", "finished", "ending session")
Research or analysis is complete
About to start unrelated work
This combines: session_end (saves summary) + optional artifact export. ALWAYS call this when user indicates work is done to prevent knowledge loss.
WORKFLOW POSITION: Last tool in any research/analysis workflow.
PARAMETERS:
session_id: The session to end (track from start_research or session_start)
export_to_library: If True, also search for recent findings to persist (default: True)
project: Project name for any exported findings (optional)
Returns session end status and export results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | ||
| session_id | Yes | ||
| export_to_library | No |