mail_read_attachment
Read a file attachment from an Outlook message and return its content as base64 bytes, up to 2 MiB, without executing or saving anything.
Instructions
Read a file attachment as bounded inert base64 bytes (up to 2 MiB). Item and reference attachments are rejected; no URL is followed and nothing is executed or written to disk.
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": {
"accountId": "<accountId>",
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "mail_read_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxBytes | No | ||
| accountId | Yes | ||
| messageId | Yes | ||
| attachmentId | Yes |