Upload image
upload_imageUpload an image to the site's media library. Returns a mediaId, which goes in an Image's src with type "cdn" (and in content when that is set, since src shadows content). 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. Pass it on every call. | |
| 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 or data URL. Last resort: ~3MB cap. |