Save session
save_sessionSave session knowledge—including facts, decisions, lessons, procedures, and open threads—to long-term memory so AI agents can preserve context and search it across sessions.
Instructions
Save this session's knowledge to memory. sections is an object whose keys are:
journal: what was done and the outcome, a few lines
facts: stable truths learned (where config lives, versions, how things connect)
decisions: what was decided, why, and what was rejected
lessons: surprises and root causes
dead_ends: approaches that failed and why
procedures: steps or commands that worked (no command output)
changes: repos, branches, commits, PRs, tickets, what was applied (pointers only, no diffs)
open_threads: unfinished work, next steps, blockers
preferences: corrections on how the owner wants the AI to work
warnings: dangerous things to check first
client_memory: memory files the client wrote or changed this session Unknown keys are kept inside the journal. Saving the same client_session_id again adds a revision. Never include secrets. Set unsure=true if you are not sure the summary is free of secrets; the owner reviews it first.
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": {
"client_session_id": "<client_session_id>",
"sections": "<sections>"
},
"name": "save_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unsure | No | True when you are not sure the text is free of secrets; the owner reviews it before anything is searchable. | |
| sections | Yes | Typed sections: keys from the list above, values a string or a list of strings. | |
| client_session_id | Yes | Your own stable id for this session; saving it again adds a revision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||