set_shape_style
Set a shape group's fill and stroke styling in one call, automatically adding missing Fill or Stroke. Accepts hex or RGB colors, opacity, stroke width, and dash patterns, then returns the applied values.
Instructions
Style a shape group's fill and/or stroke in one call — Fill/Stroke are found or ADDED as needed. Colors accept a hex string ("#rrggbb"/"#rgb") or an [r,g,b] array (0–1 or 0–255, auto-normalized). group targets a shape group by name or 1-based index (default: first group). Optional fillOpacity/strokeOpacity (0–100), strokeWidth, and dash (array of numbers or [dash,gap] pairs; up to 3 pairs). Returns the read-back fill/stroke/width.
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": "set_shape_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| dash | No | Dash pattern: numbers or [dash,gap] pairs. | |
| fill | No | Hex or [r,g,b(,a)]. | |
| group | No | Shape group name or 1-based index. Default first group. | |
| layer | Yes | Layer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing. | |
| stroke | No | Hex or [r,g,b(,a)]. | |
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. | |
| fillOpacity | No | ||
| strokeWidth | No | ||
| strokeOpacity | No |