Upload Media
listmonk_upload_mediaUpload image files to the Listmonk media library for use in campaigns and templates.
Instructions
Uploads an image file to the media library for use in campaigns/templates.
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": {
"file_name": "<file_name>",
"file_content_base64": "<file_content_base64>"
},
"name": "listmonk_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Original filename incl. extension, e.g. 'banner.png'. | |
| content_type | No | MIME type, e.g. 'image/png'. Guessed from extension if omitted. | |
| response_format | No | Output format: 'markdown' for human-readable text (default) or 'json' for machine-readable data. | markdown |
| file_content_base64 | Yes | Base64-encoded file bytes. |