run_lua_script
Execute custom Lua scripts in Aseprite to automate pixel art tasks beyond standard tools, using the full Lua API.
Instructions
Execute arbitrary Lua code inside Aseprite. Use for operations not covered by other tools.
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": {
"script": "<script>"
},
"name": "run_lua_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | Lua code to execute. Has access to full Aseprite Lua API. |