Get Email Attachment
email_get_attachmentDownload an email attachment to a specified local path using the email ID and attachment ID, with validation to prevent overwriting existing files.
Instructions
Download an email attachment to a validated local path.
Args:
email_id: Microsoft Graph message identifier containing the attachment.
attachment_id: Target attachment identifier within the message.
save_path: Destination path for the attachment. Validated via
ensure_safe_path; existing files are never overwritten.
account_id: Microsoft account identifier.
Returns: Attachment metadata, including saved path and content size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | ||
| attachment_id | Yes | ||
| save_path | Yes | ||
| account_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||