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 ![alt](url "caption"). 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_image

Endpoint

POST https://dispatch.nshipyard.com/api/mcp

Call it with method tools/call and name dispatch_upload_image.

Parameters

NameTypeRequiredDescription
publicationIdstringRequired—
filenamestringRequiredOriginal filename, e.g. hero.png (the extension sets the content type)
content_base64stringRequiredBase64-encoded image bytes, no data: URL prefix
content_typestringOptionalOptional MIME type override, e.g. image/png

Returns

url string
The image URL. Reference it as ![alt](url "caption").

Errors

ErrorWhen it happensFix
Not authorized for this publicationThe 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 bytesThe 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.

All tools