tldraw_create_line
Create line shapes with multiple control points on a tldraw canvas. Supports straight or cubic spline interpolation with customizable dash, size, color, and opacity.
Instructions
Create a line shape with multiple control points. Supports straight line segments or cubic spline interpolation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| dash | No | Dash style | draw |
| size | No | Line thickness | m |
| color | No | Line color | black |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| points | Yes | Array of control points (minimum 2) | |
| spline | No | Interpolation: 'line' for straight segments, 'cubic' for smooth curves | line |
| opacity | No | Opacity from 0 to 1 (default 1) | |
| isLocked | No | Whether the shape is locked (default false) | |
| parentId | No | Parent frame or group ID for nesting | |
| rotation | No | Rotation in radians (default 0) |