save_attachment_to_webdav
Save email attachments to WebDAV cloud storage (e.g., Fastmail Files, Nextcloud) without using local disk. Specify a relative path; missing folders are created automatically unless disabled.
Instructions
Save an email attachment directly to WebDAV cloud storage (e.g. Fastmail Files or Nextcloud) without touching local disk. The storage server and credentials come from server configuration (FASTMAIL_WEBDAV_URL / _USERNAME / _PASSWORD); this tool only chooses the relative path beneath that base. Fails if the remote file exists unless overwrite is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | ID of the email | |
| overwrite | No | Replace an existing remote file (default false: fail if it exists) | |
| remotePath | Yes | Relative path under the configured WebDAV base (e.g. "invoices/2026/receipt.pdf"). No leading slash, no "..", forward slashes only. Missing parent folders are created unless createParents is false. | |
| attachmentId | Yes | Attachment partId, blobId, or zero-based index | |
| createParents | No | Create missing parent collections via MKCOL (default true) |