mailroom_attachment
Download a single email attachment as base64, such as a PDF receipt, with an 8 MB size limit.
Instructions
Download one attachment from a message as base64 (for example a PDF receipt), up to 8 MB.
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": {
"id": "<id>",
"attachment": "<attachment>"
},
"name": "mailroom_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message id from mailroom_search (a numeric uid for Gmail/IMAP, a Graph id for Microsoft 365). | |
| folder | No | Folder: inbox (default), sent, drafts, trash, junk, archive, all, or a folder name. | |
| account | No | Which connected mailbox to use (its label from mailroom_accounts). Optional when only one is connected or a default is saved in memory. | |
| attachment | Yes | Attachment id or file name as listed by mailroom_read. |