undo
Reverse the most recent undoable map edit, including create, delete, move, modify, terrain, or cave steps. Use it to roll back a whole prefab placement or room build in one call.
Instructions
Reverse the LATEST undoable edit (create / delete / move / modify / terrain / cave).
The bridge keeps its own undo/redo stack of 1000 steps, independent of
Dungeondraft's Ctrl+Z. A whole place_prefab, scatter_objects, build_room or
move_elements call is one step, so one undo reverses all of it — provided
nothing undoable has happened since. Undo always takes the newest step; it
cannot target an older one.
`undone: false` with `skipped` (the step's kind) means that step's
elements were already gone (deleted in Dungeondraft, or a level removed):
it was dropped, not reversed. Call undo again for the step before it.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||