List shape contents
list_shape_contentsLists a shape layer's content tree: groups, paths, shapes, fills, strokes, gradients and modifiers with key values. Target one group or expand nesting depth.
Instructions
Tree of a shape layer's Contents (or one group): groups with transform and groupPath, paths (vertex count), rect/ellipse/star parameters, fills/strokes (hex color, width, opacity), gradients and modifiers with key values. detail=true adds path vertices.
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": "list_shape_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| depth | No | Group nesting levels to expand (default 20). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| detail | No | Include path vertices/tangents. | |
| groupPath | No | Only list this group (default: whole Contents). |