get_attachment
Download or extract a specific email attachment from METU Webmail using the message ID and filename or index. Choose the folder if the email is outside INBOX.
Instructions
Download/extract an attachment from an email message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | The folder containing the email (default: 'INBOX'). | INBOX |
| message_id | Yes | The ID of the email message. | |
| attachment_name_or_index | Yes | The filename (e.g. 'syllabus.pdf') or part index number of the attachment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name of the attached file | |
| part_index | No | Index of MIME part | |
| size_bytes | No | Size of attachment in bytes | |
| content_type | Yes | MIME type of the attachment | |
| content_base64 | No | Base64 encoded content (only if requested) |