tldraw_create_bookmark
Insert a bookmark shape onto a tldraw canvas to display a preview card for any URL. Provide the URL, page ID, and coordinates to create the shape.
Instructions
Create a bookmark shape that displays a URL preview card.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Bookmark height | |
| w | No | Bookmark width | |
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| url | Yes | URL for the bookmark | |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| assetId | No | Optional asset ID for bookmark metadata | |
| 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) |