Add fill
add_fillAdd a solid Fill to a shape group or Contents root, coloring paths that have no fill of their own. Set layer, color, opacity, fill rule, and where it stacks.
Instructions
Add a solid Fill to a shape group (or the Contents root, where it fills every path above it that has no own fill). Items are appended at the bottom of the group, so it renders below existing fills/strokes in that group.
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_fill"
}
}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 for the fill item. | |
| color | No | Fill color (default white). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| opacity | No | Opacity 0-100. | |
| fillRule | No | Fill rule for overlapping paths / holes (default nonzero). | |
| composite | No | Composite: below previous (default) or above previous in the same group. | |
| groupPath | No | Shape group path inside the layer's Contents: '/'-separated Vector Group names (or 1-based indexes), e.g. 'Logo' or 'Logo/Circle'. Omit or '' for the Contents root. A leading 'Contents/' is accepted. Use list_shape_contents to see names. |