get_attachment
Download an email attachment over IMAP by specifying the account, email UID, filename, and optional folder; works with Gmail, Outlook, and custom domains.
Instructions
Download an email attachment via IMAP — works with any provider (Gmail, Outlook, custom domains).
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": {
"accountId": "<accountId>",
"uid": "<uid>",
"filename": "<filename>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The UID of the email | |
| folder | No | The folder containing the email (default: INBOX) | |
| filename | Yes | The name of the attachment file | |
| accountId | Yes | The ID of the account to use |