Hand a file to mailmcp
upload_attachmentStores a file you have (text, or base64 for binary, up to policy.max_upload_bytes) in the mailbox folder "mailmcp-uploads" so it can be attached to a draft or a sent message. Returns {folder, uid, part} to use in the attachments parameter. The file is removed once attached. For large files or files on the user's disk use request_upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id from list_accounts | |
| content | Yes | UTF-8 text or base64 | |
| encoding | No | ||
| filename | Yes | ||
| content_type | No |