attachment_save_to_path
Save an OmniFocus attachment to a specified local file path. Provide the attachment ID and destination; the file is written to disk without affecting OmniFocus.
Instructions
Copy an attachment's content to a local file path. Do not use to list or remove attachments — use attachment_list or attachment_delete instead. Returns { saved: true, path, sizeBytes } on success. Destination path must be within the allowed scope (default: $HOME). Writes the file to destPath (creates or overwrites); no side effects on OmniFocus data. Example: attachment_save_to_path({ taskId: "abc123", attachmentId: "att456", destPath: "/Users/me/report.pdf" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | No | Persistent ID of the task that owns the attachment. Provide exactly one of taskId or projectId. | |
| destPath | Yes | Absolute destination path where the attachment will be written. Must be within the allowed attachment path scope. Existing files are overwritten. | |
| projectId | No | Persistent ID of the project that owns the attachment. Provide exactly one of taskId or projectId. | |
| attachmentId | Yes | Persistent ID of the attachment to save. Get from attachment_list. |