Run Aseprite Lua
aseprite_run_luaExecute inline or file-based Aseprite Lua scripts, optionally opening sprites first, to automate pixel art creation, editing, animation, and export.
Instructions
Execute an inline or file-based Aseprite Lua script, optionally opening input sprites first.
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": "aseprite_run_lua"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for Aseprite commands. | |
| batch | No | Run with --batch. Keep true for headless automation. | |
| params | No | Values passed as --script-param name=value and available in app.params. | |
| script | No | Inline Lua code to execute with --script. | |
| timeoutMs | No | Command timeout in milliseconds. | |
| inputFiles | No | Sprites/images opened before running the script. | |
| scriptFile | No | Existing Lua file to execute with --script. | |
| asepritePath | No | Path to the Aseprite executable. Defaults to ASEPRITE_PATH or PATH discovery. |