Commit session
commit_sessionCreate a named checkpoint of the session's current state before risky edits; returns a commit_id to restore and roll back.
Instructions
Create a named checkpoint of the session's current state, e.g. before a risky edit. Returns {commit_id, message, total_commits}; pass commit_id to restore_session to roll back. Every call adds a new checkpoint. Checkpoints live in the session only and are lost when it closes or expires; to keep one in the Library's version history, call save_to_library after it (the version takes this message as its name).
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>",
"message": "<message>"
},
"name": "commit_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Short description of the checkpoint, e.g. "before exit cap change"; also names the next Library version | |
| session_id | Yes | Session ID returned by create_session (list_sessions shows the open ones) |