add_spline
Create editable spline primitives such as circles, ellipses, rectangles, lines, arcs, donuts, ngons, and stars with geometry parameters when you need vector paths with points and handles.
Instructions
Create an editable spline primitive (circle/ellipse/rectangle/line/arc/donut/ngon/star). Use over add_layer shapes when the user wants an editable vector path (points/handles). Each kind takes its own geometry params (radius, sides, angles…).
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>",
"kind": "<kind>"
},
"name": "add_spline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Layer x position | |
| y | No | Layer y position | |
| id | Yes | Unique layer id | |
| x1 | No | line start x | |
| x2 | No | line end x | |
| y1 | No | line start y | |
| y2 | No | line end y | |
| kind | Yes | Primitive kind | |
| name | No | Display name | |
| sides | No | ngon side count | |
| width | No | rectangle width | |
| height | No | rectangle height | |
| points | No | star point count | |
| radius | No | circle / arc / donut(outer via outerRadius) / ngon radius | |
| radiusX | No | ellipse x radius | |
| radiusY | No | ellipse y radius | |
| endAngle | No | arc end angle (deg) | |
| fillColor | No | Fill hex (closed shapes) | |
| requestId | No | ||
| roundness | No | ngon/star corner roundness 0–1 | |
| sessionId | No | ||
| startAngle | No | arc start angle (deg) | |
| innerRadius | No | donut/star inner radius | |
| outerRadius | No | donut/star outer radius | |
| strokeColor | No | Stroke hex | |
| strokeWidth | No | Stroke width px | |
| cornerRadius | No | rectangle corner radius | |
| expectedRevision | No |