microcms_upload_media
Upload media files to microCMS via base64 data or external URL. Returns the asset URL for use in content.
Instructions
Upload media files to microCMS using JS SDK (Management API). Supports two methods: 1) Upload file data (base64) with filename and mimeType, 2) Upload from external URL. Returns microCMS asset URL. Requires media upload permissions. Available on Team, Business, Advanced, and Enterprise plans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileData | No | Base64 encoded file data (for direct file upload) | |
| fileName | No | File name with extension (e.g., "image.jpg", "document.pdf") - required when using fileData | |
| mimeType | No | MIME type of the file (e.g., "image/jpeg", "application/pdf") - required when using fileData | |
| serviceId | No | Service ID (required in multi-service mode, optional in single-service mode) | |
| externalUrl | No | External URL of the file to upload (alternative to fileData) |