Undo changes in a file.
undo_file_editRevert a file to its state before the last edit made by any tool. This undo operation is recorded in the master ledger for full history tracking.
Instructions
Revert file before the most recent mutating tool was called on it. This will be recorded in the master ledger as an undo operation.
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": {
"filepath": "<filepath>"
},
"name": "undo_file_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |