Upload an image for a website
upload_imageHost an image for a website and get back its URL, to use as a post's image or in its Markdown (). Send the image's bytes as base64: PNG, JPEG, WebP or GIF, at most 5 MB. The image is public at that URL as soon as it is uploaded.
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": {
"siteId": "<siteId>",
"data": "<data>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The image file, base64 encoded (no data: prefix). | |
| siteId | Yes | The site (id from list_sites). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The image's public URL, for a post's image field or its Markdown. | |
| bytes | Yes | ||
| siteId | Yes | ||
| contentType | Yes |