update_session
Rename a session's folder and replace its main script, saving both changes to history for undo; returns the new path or session ID.
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.
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 as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move. |