remove_layer
Delete a layer or group, including its children, from an Aseprite file by name or 1-based index to simplify sprite structure without opening the editor.
Instructions
Delete a layer (or group, including its children) by name or 1-based index.
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": "<layer>"
},
"name": "remove_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| filename | Yes |