Upload an image
heystack_upload_imageUpload a PNG, JPEG, GIF or WebP image for a document and get its URL and a Markdown image line. Write. Use this before putting an image in Markdown. Inline data images and local paths are refused. Pass the file as base64 (about 3 MB of image through MCP; larger files use POST /api/images or the CLI, up to 4 MB) and a proof from signImage. The proof covers the exact bytes, uses the same Ed25519 key and 12-bit proof of work, and expires after 3 minutes. On success the result is {url, markdown}. Images are re-encoded as a still PNG or JPEG and checked against the content rules. Animated images are refused. 422 is a refusal, 503 means review is unavailable. Never send a private key. Requires MCP 2026-07-28. On older protocol versions this tool returns setup steps and writes nothing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"imageBase64": "<imageBase64>",
"proof": "<proof>"
},
"name": "heystack_upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alt text used in the returned Markdown image line. | |
| proof | Yes | The signed image proof returned by signImage. | |
| imageBase64 | Yes | Image bytes as base64. About 3 MB of image at most through MCP. |