ghost_upload_image
Upload an image to Ghost CMS from a URL, local file, or base64 data. Returns the image URL, alt text, and reference.
Instructions
Uploads an image to Ghost CMS. Accepts a remote URL, a local file path (when GHOST_MCP_IMAGE_ROOT is configured), or a base64 payload. Returns the Ghost image URL, alt text, and ref (when Ghost echoes it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageUrl | No | The publicly accessible URL of the image to download and upload. | |
| imagePath | No | Absolute path to a local image file. Only accepted when the GHOST_MCP_IMAGE_ROOT env var is set; paths must resolve inside that root. | |
| imageBase64 | No | Base64-encoded image bytes (with or without data: URI prefix). Decoded size capped at 5MB to respect MCP transport limits. Requires mimeType. | |
| mimeType | No | MIME type for imageBase64 input (e.g. image/png, image/jpeg, image/svg+xml). Required when imageBase64 is used. | |
| alt | No | Alt text for the image. If omitted, a default will be generated from the filename. | |
| purpose | No | Intended use. Ghost validates format/size per purpose (icon/profile_image must be square; icon also accepts ICO). | |
| ref | No | Caller-supplied identifier (e.g. original filename). Ghost echoes it back in the response. |