Pre-compose layers
precomposeCombine one or more layers into a new composition, optionally moving effects, masks, and transforms, and return the new comp with the layer that replaced them.
Instructions
Pre-compose layers into a new composition (Layer > Pre-compose). moveAllAttributes=true (default) moves effects/masks/transforms into the new comp, which gets the parent comp's size; false (single layer only) leaves attributes on the precomp layer and sizes the new comp to the layer. Returns the new comp and the precomp layer that replaced the layers.
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": "precompose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| name | No | Name of the new comp (default '<first layer name> Comp'). | |
| folder | No | Project folder name, 'A/B' path or id. A missing name/path is created at the project root. | |
| layers | No | Layers: array of layer refs, or 'selected' (default) or 'all'. | |
| openNew | No | Open the new comp in the viewer (default false). | |
| moveAllAttributes | No | Move all attributes into the new comp (default true). |