revert_last_changes
Revert the last 1–10 file changes made by Claude Code CLI by analyzing session JSONL and applying structured patch data, with automatic active-session detection and sequential undo.
Instructions
Intelligently reverts the last N changes made by Claude Code CLI by analyzing conversation JSONL files. Automatically finds the active session and reverts file modifications using structured patch data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "revert_last_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of recent changes to revert (1-10) | |
| user_message | No | The message you sent to Claude Code that triggered this revert request | |
| conversation_history | No | Conversation history to track previous revert operations |