memory_session_append
Append a turn to a working-memory session (self-healing).
When session_id has expired or was closed, a fresh session is
opened automatically and the turn lands there; the response then
carries the replacement session_id and reopened: true. Pass
repo (and optionally github / topic) so reopen preserves
workspace scope and updates the state pointer without a manual
memory_state_set.
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>",
"role": "<role>",
"content": "<content>"
},
"name": "memory_session_append"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Workspace slug. When set with an active bearer token, reopen self-healing updates the conversation/active-session pointer. | |
| role | Yes | user, assistant, tool, or system | |
| topic | No | Session topic used when reopening after expiry | |
| github | No | GitHub owner/repo tag used when reopening a session | |
| content | Yes | Turn content | |
| session_id | Yes | Session id from memory_session_open |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||