rollback_session
Undo all changes made during the current AI session to restore the original code state. Use this tool to revert modifications when needed.
Instructions
Rollback all changes made in the current AI session
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": {
"confirm": "<confirm>"
},
"name": "rollback_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Confirm rollback (required) | |
| preserveUnstaged | No | Keep unstaged changes |