upload_attachment
Upload a file by providing its base64 content, filename, and MIME type to obtain an attachment ID for use when sending emails.
Instructions
Upload a file for use when sending emails.
Returns an attachment_id to pass to send_email's attachments parameter.
Args: content: Base64-encoded file content filename: Original filename, e.g. "report.pdf" mime_type: MIME type, e.g. "application/pdf" or "image/png"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| filename | Yes | ||
| mime_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |