download_attachment
Download attachments from iCloud email messages by specifying the message ID and attachment index to retrieve files from your mailbox.
Instructions
Download an attachment from a specific message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachmentIndex | No | Index of the attachment to download (0-based) | |
| mailbox | No | Mailbox name (default: INBOX) | INBOX |
| messageId | Yes | Message ID containing the attachment |
Input Schema (JSON Schema)
{
"properties": {
"attachmentIndex": {
"default": 0,
"description": "Index of the attachment to download (0-based)",
"type": "number"
},
"mailbox": {
"default": "INBOX",
"description": "Mailbox name (default: INBOX)",
"type": "string"
},
"messageId": {
"description": "Message ID containing the attachment",
"type": "string"
}
},
"required": [
"messageId"
],
"type": "object"
}