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).
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) |