add_path
Create a bezier path layer from [x,y] points to draw a visual stroke or an invisible motion guide for animating layers along a custom route.
Instructions
Create a bezier path layer from an array of [x,y] points. role="visual" draws a stroke; role="motion" is an invisible guide for assign_motion_path. Points are in layer-local px; set x/y to position the path.
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": {
"id": "<id>",
"points": "<points>"
},
"name": "add_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Layer x position | |
| y | No | Layer y position | |
| id | Yes | Unique layer id | |
| name | No | Display name | |
| role | No | visual or motion (default visual) | |
| closed | No | Close the path into a loop (default false) | |
| points | Yes | Array of [x,y] pairs, e.g. [[0,0],[100,50],[200,0]] | |
| requestId | No | ||
| sessionId | No | ||
| strokeColor | No | Stroke hex color | |
| strokeWidth | No | Stroke width in px | |
| expectedRevision | No |