Add stroke
add_strokeAdds a stroke to a shape group or Contents root, letting you set color, width, opacity, line caps/joins, miter limit and dash patterns to outline vector artwork in After Effects.
Instructions
Add a Stroke to a shape group (or Contents root): color, width, opacity, line cap/join, miter limit and dashes.
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_stroke"
}
}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 stroke item. | |
| color | No | Stroke color (default white). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| width | No | Stroke width px (default 2). | |
| dashes | No | Dash pattern [dash, gap, dash, gap, ...] in px (max 6 values). | |
| lineCap | No | Stroke line cap. | |
| opacity | No | Opacity 0-100. | |
| lineJoin | No | Stroke line join. | |
| composite | No | Composite order in the 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. | |
| dashOffset | No | Dash offset px (only with dashes). | |
| miterLimit | No | Miter limit (default 4). |