add_curve
Draw an editable arrow / curved line — a stroked quadratic bezier with an arrowhead. Specify the two endpoints (x1,y1)→(x2,y2) in canvas pixels; bend pushes the midpoint perpendicular (px, 0 = straight line, positive/negative curves either way). color #rrggbb, stroke_width px, arrow_head none|end|both (default end). Use this for callout arrows (e.g. swooping into a link).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start x (canvas px). | |
| x2 | Yes | End x (canvas px) — the arrowhead end. | |
| y1 | Yes | Start y (canvas px). | |
| y2 | Yes | End y (canvas px). | |
| bend | No | Perpendicular bow of the curve in px. 0 = straight. | |
| color | No | Stroke colour as #rrggbb. | |
| projectId | Yes | Opaque project id (a v4 UUID, from list_projects/create_project). Selects which existing project this call mutates. | |
| arrow_head | No | ||
| stroke_width | No | Line thickness in px. |