graph_add_mail_attachment
Attach a file (max 3 MB) to an existing Outlook draft by message ID; specify file name, base64 content, MIME type, and optional shared mailbox.
Instructions
Attach a file to an existing draft message (max 3MB).
Args: message_id: The draft message ID (from graph_create_mail_draft). file_name: File name to show on the attachment. content_base64: File content encoded as base64. content_type: MIME type (default "application/octet-stream"). 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>",
"file_name": "<file_name>",
"content_base64": "<content_base64>"
},
"name": "graph_add_mail_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | No | ||
| file_name | Yes | ||
| message_id | Yes | ||
| content_type | No | application/octet-stream | |
| content_base64 | Yes |