run_script
Run arbitrary Lua scripts in Aseprite to perform advanced sprite operations and automation.
Instructions
Execute an arbitrary Lua script in Aseprite (for advanced operations)
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_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Sprite file to open before running (optional) | |
| script | Yes | Lua script code to execute |