tldraw_create_arrow
Add arrows to a canvas with straight or curved paths and automatic binding to shapes for clear connections.
Instructions
Create an arrow shape. Supports straight, curved (bend), and auto-binding to shapes. Set startBinding/endBinding to connect the arrow to shapes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| bend | No | Bend amount (0=straight, positive=curve right, negative=curve left) | |
| dash | No | Dash style | draw |
| endX | No | End point X (relative to shape position) | |
| endY | No | End point Y (relative to shape position) | |
| fill | No | Fill style | none |
| font | No | Font for label | draw |
| size | No | Size style | m |
| text | No | Arrow label text | |
| color | No | Arrow color | black |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| startX | No | Start point X (relative to shape position) | |
| startY | No | Start point Y (relative to shape position) | |
| 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) | |
| endBinding | No | Bind end to a shape | |
| labelColor | No | Label color | black |
| arrowheadEnd | No | End arrowhead type | arrow |
| startBinding | No | Bind start to a shape | |
| arrowheadStart | No | Start arrowhead type | none |