undo_last_change
Restore a file from its latest backup to undo your last change. If no filename is provided, the most recently modified file is restored.
Instructions
Restore a file from its latest backup. If filename is not specified, restores the most recently modified file.
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": {
"projectPath": "<projectPath>"
},
"name": "undo_last_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional: specific JSON file to restore (e.g., 'Actors.json'). If omitted, restores the most recently modified file. | |
| projectPath | Yes |