Duplicate composition
duplicate_compDuplicates an After Effects composition, optionally copying nested precomps recursively and relinking them to create a fully independent composition tree.
Instructions
Duplicate a composition. With deep=true, nested precomps are duplicated recursively too and the copies are relinked, so the new comp tree is fully independent of the original (each shared precomp is copied once).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "duplicate_comp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| deep | No | Also duplicate all nested precomps recursively and relink them (default false). | |
| folder | No | Project folder name, 'A/B' path or id. A missing name/path is created at the project root. | |
| newName | No | Name of the duplicate (default: AE's auto name, e.g. 'Main 2'). | |
| nestedSuffix | No | deep only: suffix added to duplicated precomp names, e.g. ' v2' (default: AE's auto name). |