upload_image_base64
Upload an image (base64-encoded) and get a stable URL to reference in a document via .
Accepts PNG/JPEG/WebP/GIF/SVG, up to 10 MB decoded. Send raw base64 or a data: URL in image_base64. This is the agent-friendly counterpart to the browser multipart upload — use it to save a generated or fetched image so a document can embed it.
Embed the returned url (the stable canonical reference — it never
expires and every document read serves it as a fresh time-limited signed
link). view_url is such a signed link for immediately viewing/downloading
the image outside a document; it expires, so never embed it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional original filename (used only to infer content type). | |
| content_type | No | Optional MIME type, e.g. image/png. Defaults to image/png. | |
| image_base64 | Yes | The image bytes, base64-encoded (raw base64 or a data: URL). | |
| authorization | No |