Create shape layer
create_shape_layerCreates a shape layer in a composition and optionally adds vector shapes with fills and strokes, returning group paths for later edits.
Instructions
Create a new shape layer in a comp, optionally with shapes added immediately (each shape in its own Vector Group with its own fill/stroke, same spec as add_shape). The layer's origin starts at the comp center, so shape positions are relative to it. Returns the layer and each shape's groupPath for later edits.
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": "create_shape_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| name | No | Layer name (default 'Shape Layer N'). | |
| shapes | No | Shapes to add, e.g. [{type:'rect', size:[200,100], fill:'#ff0000'}]. | |
| position | No | Layer position in comp pixels (default comp center). |