create_polyline
Creates an editable vector polyline from [x, y] coordinate pairs, with an option to close the path into a filled polygon.
Instructions
Create an editable vector from an array of [x, y] point pairs. Use closed=true to produce a filled polygon.
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": {
"points": "<points>"
},
"name": "create_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Layer name | |
| closed | No | Close the path into a polygon | |
| points | Yes | Array of [x, y] coordinate pairs | |
| parentId | No | Parent frame/group node ID | |
| strokeColor | No | ||
| strokeWeight | No |