run_command
Execute any Aseprite menu command, such as Flip or Rotate, with parameters to apply edits in live or batch mode.
Instructions
Executes any Aseprite menu command (app.command.) with parameters, e.g. Flip, Rotate, Outline, BrightnessContrast, ColorQuantization, LinkCels, ReverseFrames, AutocropSprite. See list_commands for names and parameters. Strings like '#ff0000' become Colors; {x,y,width,height} becomes a Rectangle. ui=false is added unless allowUi is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Command name, e.g. 'Outline' | |
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| frame | No | Frame to make active before running | |
| layer | No | Layer to make active before running | |
| params | No | Command parameters | |
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| allowUi | No | Let the command open its dialog (live mode only) | |
| backend | No | auto (default): live Aseprite if connected, else headless batch | |
| mutates | No | Batch mode: false skips saving (default true) |