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.
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": {
"message_id": "<message_id>",
"attachment_name_or_index": "<attachment_name_or_index>"
},
"name": "get_attachment"
}
}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) |