upload_image
Upload an image to Substack's CDN using a base64 data URI or local file path. Returns a publicly accessible hosted image URL.
Instructions
Upload an image to Substack's CDN. Provide exactly one of image_base64 (a base64 data URI) or image_path (a local file path). Returns a hosted image URL that is publicly fetchable by anyone with the link (an unlisted asset — not attributed to you or added to your feed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | No | Absolute path to a local image file (e.g., "/Users/me/pic.png"). Read and encoded automatically; MIME type inferred from the extension. Mutually exclusive with image_base64. | |
| image_base64 | No | Base64-encoded image with data URI prefix (e.g., "data:image/png;base64,..."). Mutually exclusive with image_path. |