duplicate_layer
Creates a copy of a layer within an After Effects composition using the composition ID and layer index, enabling layer reuse and modification.
Instructions
Duplicate a layer within a composition
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": {
"compId": "<compId>",
"layerIndex": "<layerIndex>"
},
"name": "duplicate_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer to duplicate |