Add empty shape group
add_shape_groupCreate an empty vector group inside a shape layer's Contents or nested group to organize shapes and apply shared transforms, fills, strokes, and modifiers to all contained items.
Instructions
Add an empty Vector Group (for organizing / shared transforms) to a shape layer's Contents or inside another group. Then add shapes into it with add_shape groupPath='', and fills/strokes/modifiers that apply to everything inside.
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": "add_shape_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| name | No | Group name (default 'Group', made unique). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| scale | No | Group scale [x,y] %. | |
| opacity | No | Group opacity 0-100. | |
| position | No | Group position (layer coordinates relative to the layer origin). | |
| rotation | No | Group rotation degrees. | |
| groupPath | No | Parent group (default: Contents root). | |
| anchorPoint | No | Group anchor point. |