undo_redo_manage
Manage Godot editor's undo/redo history by inspecting stack depth, active action, and history IDs, then execute undo or redo actions to adjust changes.
Instructions
Editor Undo/Redo History Introspection and Transaction Execution.
Ops:
get_history() Query active action name, undo stack depth, and history IDs.
undo() Execute an undo action in the active editor.
redo() Execute a redo action in the active editor.
Canonical call shape: {"op": "<verb>", "params": {...}}. Flat op parameters are accepted as a compatibility alias when the client transmits them; op and session_id remain top-level.
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": {
"op": "<op>"
},
"name": "undo_redo_manage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| params | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||