graph_get_mail_attachment
Retrieve a specific email attachment and its base64-encoded content by message and attachment ID, from your own or a shared mailbox.
Instructions
Get a specific email attachment including its content.
The attachment content is returned as base64-encoded data in the 'contentBytes' field. For large attachments, only metadata is practical.
Args: message_id: The email message ID. attachment_id: The attachment ID (from graph_list_mail_attachments). mailbox: Shared mailbox address or user ID to act on. Empty targets your own mailbox. Requires the delegated Mail.*.Shared permissions.
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_id": "<attachment_id>"
},
"name": "graph_get_mail_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | No | ||
| message_id | Yes | ||
| attachment_id | Yes |