Undo the last Godotwright writes
godot_undoUndo recent Godotwright scene and project writes, renames, migrations, fixes, and model builds, newest first, to revert harmful changes without losing later manual edits.
Instructions
Undo what Godotwright wrote, newest first: scene and project edits, renames (moved files go back), migrations, fixes and model builds each keep the files as they were, in .godot/godotwright/journal/ (the last 40 writes). steps undoes that many writes (default 1); list only shows them. A file changed after the write (by hand or by another tool) stops the undo there, so your later edits are never lost silently; force undoes anyway. Use it when a write made things worse, instead of repairing by hand.
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": "godot_undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | No | only list the writes that can be undone | |
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| force | No | undo even when a file changed after the write; those changes are lost | |
| steps | No | how many writes to undo (default 1) |