Save an email attachment to OneDrive
save_outlook_attachment_to_onedriveCopy one attachment of an Outlook message into this account's OneDrive, as-is — any file type, up to 10 MB, without reading it. Goes into the folder parentItemId (from list_onedrive_items or search_onedrive_items) or the drive root when omitted; the name defaults to the attachment's own, and a taken name gets a suffix rather than overwriting. Get attachmentId from get_outlook_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": {
"mailbox": "<mailbox>",
"messageId": "<messageId>",
"attachmentId": "<attachmentId>"
},
"name": "save_outlook_attachment_to_onedrive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name to save under; defaults to the attachment's name | |
| mailbox | Yes | Email address of the connected Outlook/Microsoft 365 mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| messageId | Yes | ||
| attachmentId | Yes | ||
| parentItemId | No | Destination folder id; omit for the drive root |