export-paper-image
Save a rendered Paper drawing from an Apple Note to a new PNG or JPEG file, selecting the drawing by attachment ID when needed.
Instructions
Use when: saving Notes' rendered image of a Paper drawing or classic drawing to a file. Returns: savedPath, format (png or jpeg), width, height, bytes, source (fallback: Notes' full rendering; preview: its largest thumbnail, used only when no full rendering exists), and the drawing's attachmentId and handwritingSummary. Do not use when: the attachment is a photo or file (save-attachment or export-attachments). Safety: writes one new file; savePath must be absolute, under the home directory, a temp dir, or /Volumes, outside the Notes data folder, must not exist yet, and must end in the image's extension (.png, or .jpg/.jpeg). The image header is validated before and after copying. Pass attachmentId (from list-paper-attachments) when the note has more than one drawing. Requires Full Disk Access; Notes.app is not opened.
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>",
"savePath": "<savePath>"
},
"name": "export-paper-image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | Exact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key | |
| savePath | Yes | Absolute path for the new image file (.png, or .jpg/.jpeg for a JPEG rendering) | |
| attachmentId | No | Drawing to export (attachmentId or identifier from list-paper-attachments); required when the note has more than one |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| bytes | No | ||
| stale | No | ||
| width | No | ||
| format | No | ||
| height | No | ||
| source | No | ||
| savedPath | No | ||
| identifier | No | ||
| attachmentId | No | ||
| handwritingSummary | No |