discard_changes
Discard uncommitted sprite edits by dropping staged changes in staged mode or closing unsaved modifications and reloading the file in live mode.
Instructions
Discard uncommitted changes. In Staged mode: drops staged edits and journal without modifying disk. In Live mode: closes unsaved modifications and reloads the sprite cleanly from disk.
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>"
},
"name": "discard_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Target .aseprite file path (or '@active' in Live mode). |