add_layer
Creates a normal, group, or tilemap layer in an Aseprite sprite, optionally under a parent group, and returns the new layer's path.
Instructions
Add a layer, group or tilemap layer on top of its parent's stack.
Returns the new layer's path. Names do not have to be unique.
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>",
"name": "<name>"
},
"name": "add_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | What to add | normal |
| name | Yes | Layer name | |
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| parent | No | Group to add the layer to; empty for the top level | |
| tile_size | No | Tile width and height, tilemap only |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||