tldraw_create_video
Insert a video shape onto a tldraw canvas using a pre-created asset ID. Configure position, size, opacity, and autoplay settings.
Instructions
Create a video shape. Requires an asset ID (create one first with tldraw_create_asset).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Video height | |
| w | No | Video width | |
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| altText | No | Alt text for accessibility | |
| assetId | Yes | Asset ID for the video (from tldraw_create_asset) | |
| opacity | No | Opacity from 0 to 1 (default 1) | |
| playing | No | Whether video auto-plays | |
| 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) |