Upload an image
upload_imageUploads an image, such as a screenshot, chart or diagram, to static.md image hosting and returns its link, a markdown snippet that embeds it in a note (), and its type, size in bytes and dimensions. Takes JPG, PNG, GIF, WebP, AVIF, HEIC, SVG, BMP or ICO up to 10 MB, as base64 or a data: URL; HEIC is stored as JPEG. Anyone with the link can open the image, and it is listed in the user's uploads on static.md. The same image always gets the same link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alt text for the markdown snippet: what the image shows. Default: the file name | |
| data | Yes | The image file as base64, or as a data: URL such as "data:image/png;base64,iVBORw0…". An SVG can also be a URL-encoded "data:image/svg+xml,<svg …>" | |
| filename | No | Name for the file in the user's uploads, such as "revenue-q3.png" |