get_note_attachment
Save a single note attachment as a file on this Mac and return its absolute path; images and text files are also returned inline. Requires user confirmation.
Instructions
Save one attachment of a note as a file on this Mac and return its absolute path. Images (JPEG, PNG, GIF, WebP, HEIC) are also returned as an image. PDF, text, RTF, DOC and DOCX files are also returned as text (cut at 100000 characters). Other types return the path only. Files above 25 MB are refused. Notes cannot save drawings, scans, tables and links: the call then fails with an error. Locked notes are not read. The file is kept for 24 hours. Give the attachment by 'name' or 'index' from get_note. Needs 'confirm' true on every call. Ask the user first, because the file is copied to ~/Library/Caches/applesauce/attachments.
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": {
"id": "<id>"
},
"name": "get_note_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Note id from search_notes (it starts with x-coredata://). | |
| name | No | Attachment name from get_note. Give 'name' or 'index', not both. | |
| index | No | Attachment number from get_note. The first is 1. | |
| confirm | No | Must be true. Ask the user first: the call copies the attachment to this Mac. |