Hand a file to mailmcp
upload_attachmentStore text or base64 file content for email attachments and return folder, UID, and part identifiers to attach it; the file is removed once attached.
Instructions
Stores a file (text, or base64 for binary; up to policy.max_upload_bytes) in "mailmcp-uploads" and returns {folder, uid, part} to attach; it is removed once attached. Large or local files: request_upload.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"filename": "<filename>",
"content": "<content>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | list_accounts id | |
| content | Yes | UTF-8 text or base64 | |
| encoding | No | ||
| filename | Yes | ||
| content_type | No |