fetch-attachment
Retrieve a single Apple Notes attachment as inline base64 bytes without writing a file. Returns name, content type, byte count, and base64 data; get IDs from list-attachments first.
Instructions
Use when: retrieving one note attachment's bytes inline as base64 (no file written). Returns: name, content type, byte count, and base64 data. Do not use when: you want it saved to disk (save-attachment). Note: 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>"
},
"name": "fetch-attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | Note id (from search/list): x-coredata id, Notes UUID, or numeric key | |
| attachmentId | Yes | Attachment id (from list-attachments) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| bytes | No | ||
| base64 | No | ||
| contentType | No |