manage_layer
Add, delete, update, duplicate, merge down, or flatten layers and layer groups in Aseprite files. Adjust names, visibility, opacity, blend modes, and parent groups to keep artwork organized.
Instructions
Add, delete, update, duplicate, merge down, or flatten layers and layer groups.
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": {
"file": "<file>",
"action": "<action>"
},
"name": "manage_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| name | No | New name (for add/set/duplicate). | |
| type | No | For add (default image). | |
| above | No | Place above this layer (for add). | |
| below | No | Place below this layer (for add). | |
| group | No | Parent group path (for add). | |
| layer | No | Target layer name or Group/Layer path (required for delete/set/duplicate/merge_down). | |
| action | Yes | ||
| locked | No | For set. | |
| parent | No | New parent group path, or '' for root (for set). | |
| opacity | No | For add/set. | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| visible | No | For set. | |
| blendMode | No | Blend mode like 'normal', 'multiply', 'screen', 'overlay', 'addition' (for add/set). | |
| stackIndex | No | For set. |