set_layer_opacity
Adjust a named layer's opacity (0–255) in an Aseprite file to control its visibility or blend strength before export.
Instructions
Set layer opacity by name (0-255).
Args: filename: Name of the Aseprite file to modify layer_name: Layer name to target opacity: Opacity value 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": {
"filename": "<filename>",
"layer_name": "<layer_name>",
"opacity": "<opacity>"
},
"name": "set_layer_opacity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opacity | Yes | ||
| filename | Yes | ||
| layer_name | Yes |