mail_get_attachment
Retrieve email attachment metadata, text, or base64 content from Microsoft 365 by supplying message and attachment IDs, with an optional byte limit.
Instructions
Get bounded attachment metadata/text/base64 content.
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": {
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "mail_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | metadata | |
| maxBytes | No | ||
| messageId | Yes | ||
| attachmentId | Yes | ||
| mailboxScope | No |