update_session
Rename a session's folder and replace its main script, saving both edits to history so they can be undone. Give a short note to track what changed.
Instructions
Change a session's title (renames its folder) and/or replace its main script. Script changes are saved to history on both sides, so they can be undone. Give a short note. After a rename, use the returned path or the session id; the old path still works.
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": "<session>"
},
"name": "update_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | What changed, e.g. 'Tighter hook'. | |
| title | No | New title. Renames the folder. | |
| script | No | The new main script, in markdown. | |
| session | Yes | Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work. |