Undo an edit
undo_editReverts a change made through this server, restoring backed-up files and deleting files it created. Refuses if files changed later unless force=true.
Instructions
Reverts one change made through this server (default: the most recent not yet undone, optionally of one module), restoring backed-up files and deleting files it created. Refuses if the files changed afterwards unless force=true.
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": "undo_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | No | Edit number from edit_history (default: latest). | |
| force | No | Undo even if files were modified after the edit (those later changes are lost). | |
| module | No | Undo the latest edit of this module. |