Attach an image (base64) to a draft
set_draft_media_from_base64Decodes a base64-encoded image and attaches it to an existing draft. Use this tool ONLY for images shared directly in the conversation as attachments (not a public URL). For PDF documents and videos, use set_draft_media_from_url with a public URL instead (e.g. from Canva, Google Drive, or any public hosting).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64-encoded image content (without the data:…;base64, prefix) | |
| type | Yes | Media type — images only. For PDF/video, use set_draft_media_from_url. | |
| title | No | Media title (optional) | |
| altText | No | Alt text for the image (optional) | |
| draftId | Yes | The draft identifier | |
| mimeType | Yes | MIME type of the image, e.g. image/png, image/jpeg, image/gif, image/webp |