Upload image
upload_imageUpload an image to a blog. Use the returned path as the image value when creating or updating a post, page, or blog.
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": {
"blogId": "<blogId>",
"filename": "<filename>",
"mimeType": "<mimeType>",
"data": "<data>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64-encoded image bytes without a data URL prefix. Maximum decoded size: 8 MB. | |
| blogId | Yes | Blog ID. Use list_blogs to discover available blog IDs. | |
| filename | Yes | Original image filename, including its extension. | |
| mimeType | Yes | Image MIME type. SVG is supported only for logo uploads. | |
| uploadType | No | Where the image will be used. Default: post. | post |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |