save-attachment
Save an Apple Notes attachment to a file on disk by note and attachment IDs, returning the saved path. Use it to export attachments to an absolute path under home, temp, or /Volumes.
Instructions
Use when: writing one note attachment to a file on disk. Returns: the saved path. Do not use when: you want the bytes in-memory as base64 (fetch-attachment). Safety: writes a file; savePath must be absolute and under the home directory, a temp dir, or /Volumes, and not inside the Notes data folder. Get the ids from list-attachments first.
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": {
"noteId": "<noteId>",
"attachmentId": "<attachmentId>",
"savePath": "<savePath>"
},
"name": "save-attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | Note id (from search/list): x-coredata id, Notes UUID, or numeric key | |
| savePath | Yes | Absolute destination file path (must be under home, temp, or /Volumes; never inside the Notes data folder) | |
| attachmentId | Yes | Attachment id (from list-attachments) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| savedPath | No | ||
| contentType | No |