undo_edit
Revert the latest edit made by the server's write tools, or a specific edit by ID. Refuses to undo when affected files changed afterward, preventing newer work from being overwritten.
Instructions
Revert an edit applied by the write tools (the latest one by default). The undo history keeps the last 20 edits of this server session; older ones, and ids that were already undone, cannot be reverted.
Refuses when any of its files was changed after the edit, so later work is never overwritten. An edit blocked by a newer one names that edit, which must be undone first.
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 |
|---|---|---|---|
| id | No |