Duplicate layer
duplicate_layerDuplicate a layer with its effects, masks, and keyframes one or more times, placing copies directly above the original.
Instructions
Duplicate a layer (with effects, masks, keyframes) one or more times. Copies are placed directly above the original.
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": {
"layer": "<layer>"
},
"name": "duplicate_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| count | No | Number of copies (default 1). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| newName | No | Name for the copies. With count>1, ' 1', ' 2'... is appended, or '#' is replaced by the number. |