undo_redo
Undo or redo recent sprite edits by stepping through the staged snapshot journal or invoking Aseprite's native undo stack in Live mode.
Instructions
Undo or redo recent edits. In Staged mode: steps through the snapshot journal. In Live mode: invokes Aseprite's native Ctrl+Z / Ctrl+Y undo stack directly on the open sprite.
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": {
"file": "<file>",
"action": "<action>"
},
"name": "undo_redo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Target .aseprite file path (or '@active' in Live mode). | |
| steps | No | Number of steps to move (default 1). | |
| action | Yes | Direction to step. | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). |