Mailzzy MCP assets image upload
mcp_crm_assets_image_uploadStore a base64-encoded image on this tenant's own CDN and return the hosted URL. Use this when the user supplies an image directly (a logo, product photo, or screenshot) and you need a URL for it before composing campaign or template HTML - put the returned url in your . To re-host an image that is already on the public web, use mcp_crm_assets_image_import instead - do NOT download it yourself and re-encode it here. Accepted formats: gif, jpeg, jpg, png, webp, determined by the fileName extension. SVG is deliberately not accepted. base64Data may be raw base64 or a data: URI; oversized images are rejected rather than downscaled. Optionally pass entityType ('campaign', 'template', or 'form') and entityId to file the image alongside the entity it belongs to. Tenant is bound to the session and cannot be set via tool arguments.
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": {
"fileName": "<fileName>",
"base64Data": "<base64Data>"
},
"name": "mcp_crm_assets_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityId | No | Optional id of the owning campaign/template/form, for cleanup and browsing | |
| fileName | Yes | File name including extension (required). The extension must be one of gif, jpeg, jpg, png, webp. | |
| base64Data | Yes | The image bytes as base64, or a data: URI (required) | |
| entityType | No | Optional owner bucket: 'campaign' (default), 'template', or 'form' |