set_layer_opacity
Adjust a layer's opacity (0-255) in Aseprite to control transparency for pixel-art edits, animations, and exports.
Instructions
Set a layer's opacity (0-255).
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": {
"name": "<name>",
"opacity": "<opacity>"
},
"name": "set_layer_opacity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| name | Yes | ||
| opacity | Yes |