summarize_session
Generate an AI digest of the current session and persist it to R2 memory as a Markdown file. Call at the end of every work session.
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": {
"session_id": "<session_id>"
},
"name": "summarize_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Additional context to include in the summary | |
| session_id | Yes | Identifier for this session |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | R2 path where the summary was written (memory/{session_id}.md) | |
| summary | Yes | Markdown-formatted session summary |