Publication keyGenerated from lib/mcp.ts
dispatch_upload_image
Uploads an image so an issue can show it. Returns a URL to use in the issue's Markdown.
Upload an image for use in issues. Pass the image bytes as base64. Returns { url }; reference it in Markdown as . PNG, JPEG, WebP, GIF, AVIF, SVG up to 5MB. On serverless production this needs BLOB_READ_WRITE_TOKEN configured, otherwise uploads fail.
- Use it when: For a hero image, chart, or photo inside an issue.
- Don't use it when: Do not use it for a publication logo. That is set on the publication itself.
Link and endpoint
Page link
https://dispatch.nshipyard.com/support/mcp/dispatch_upload_imageEndpoint
POST https://dispatch.nshipyard.com/api/mcpCall it with method tools/call and name dispatch_upload_image.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
publicationId | string | Required | — |
filename | string | Required | Original filename, e.g. hero.png (the extension sets the content type) |
content_base64 | string | Required | Base64-encoded image bytes, no data: URL prefix |
content_type | string | Optional | Optional MIME type override, e.g. image/png |
Returns
urlstring- The image URL. Reference it as .
Errors
| Error | When it happens | Fix |
|---|---|---|
Not authorized for this publication | The key belongs to a different publication. | Use the publication key shown on that publication's Overview page, or the master key. |
content_base64 decoded to empty bytes | The base64 string was empty or invalid. | Pass raw base64 bytes with no data: URL prefix. |
Upload failed (no BLOB_READ_WRITE_TOKEN) | Image storage is not configured on the server. | The operator needs to configure Blob storage on the Dispatch instance. Images are PNG, JPEG, WebP, GIF, AVIF or SVG, up to 5 MB. |
Related
Reference generated from web/lib/mcp.ts. If this page and your agent disagree, the code wins.