run_script
Execute custom Lua scripts to procedurally draw or modify sprites, animations, and projects in Aseprite.
Instructions
Runs a custom Lua script in Aseprite. Use this to procedurally draw/modify sprites, animations, or projects.
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 |
|---|---|---|---|
| script | Yes | The Lua script content to run |