Delete shape content item
delete_shape_contentRemove a group, path, fill, stroke, or modifier from a shape layer's Contents by path, then return the remaining items in the parent.
Instructions
Delete one item (group, path, fill, stroke, modifier...) from a shape layer's Contents by path, e.g. 'Rect 1' (a group at the root) or 'Logo/Fill 1' (an item inside group Logo). Returns what remains in the parent.
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>",
"path": "<path>"
},
"name": "delete_shape_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| path | Yes | Item path: parent group names then the item name/index, '/'-separated. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. |