tldraw_create_embed
Adds an embed shape for external content such as YouTube, Figma, or Google Maps to a tldraw canvas.
Instructions
Create an embed shape for external content (YouTube, Figma, CodeSandbox, Google Maps, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Embed height | |
| w | No | Embed width | |
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| url | Yes | URL to embed | |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| 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) |