Upload image
upload_imageUpload an image to the site's media library. Returns a mediaId: write it as {{ '' | image_url: width: 800 }} (a URL) or {{ '' | image_url: width: 800 | image_tag: alt: '…' }} (an ; image_tag takes a URL, never a bare id). Web images: imageUrl. dataBase64 has a ~3MB cap and is costly in tokens. More: get_style_reference({ topic: "media" }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. | |
| filename | No | Filename hint. | |
| imageUrl | No | Public URL of the ORIGINAL full-size image — no ?w= / h= / q= resize params. | |
| mimeType | No | With dataBase64 (default image/jpeg). | |
| dataBase64 | No | Base64 of a real file's bytes, never base64 you write out (it arrives cut off). ~3MB cap; prefer imageUrl. |