delete_layer
Deletes a specified layer or group from an Aseprite sprite, including all contents of a group, while refusing locked layers and preventing removal of the last remaining layer.
Instructions
Delete a layer; deleting a group deletes everything in it.
The sprite must keep at least one layer. A locked layer, a layer in a locked group and a group holding a locked layer are refused.
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": {
"path": "<path>",
"layer": "<layer>"
},
"name": "delete_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | Yes | Layer name, or a 'group/child' path for nested layers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||