tldraw_create_image
Create an image shape on a tldraw page using an asset ID. Specify page, position, and asset ID to add the image to the canvas.
Instructions
Create an image shape. Requires an asset ID (create one first with tldraw_create_asset).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pageId": "<pageId>",
"x": "<x>",
"y": "<y>",
"assetId": "<assetId>"
},
"name": "tldraw_create_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Image height | |
| w | No | Image width | |
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| flipX | No | Flip horizontally | |
| flipY | No | Flip vertically | |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| altText | No | Alt text for accessibility | |
| assetId | Yes | Asset ID for the image (from tldraw_create_asset) | |
| 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) |