download_attachment
Download a file attached to a mail on this inbox (received OR sent). Returns the file base64-encoded plus its filename and content_type. Attachment ids come from the attachments array on each mail returned by read_inbox / read_sent / read_archived. Use this to read an emailed document (PDF, image, CSV…) that landed in the inbox.
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": {
"address": "<address>",
"token": "<token>",
"mail_id": "<mail_id>",
"attachment_id": "<attachment_id>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The inbox token. | |
| address | Yes | The inbox address. | |
| mail_id | Yes | The id of the mail the attachment belongs to. | |
| attachment_id | Yes | The attachment id (from the mail's `attachments` array). |