duplicate_layer
Duplicate a layer with all its cels across every frame, inheriting opacity and blend mode. Place the copy directly above the source or inside a specified group.
Instructions
Duplicate a layer with all its cels across every frame.
The copy inherits the source's opacity and blend mode. By default it is
placed directly above the source layer; pass group to place it inside a
group instead.
Args: filename: Aseprite file to modify layer_name: Layer to duplicate, by name or "group/subgroup/layer" path new_name: Name for the copy (default: "<layer_name> copy") group: Optional group to place the copy inside, by name or "group/subgroup" path (default: directly above the source)
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>"
},
"name": "duplicate_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| new_name | No | ||
| group | No |