list-attachments
List a note's attachments by id or title, returning each name, content type, and id for save or fetch. Optionally add on-disk paths or return only the note's lead image.
Instructions
Use when: listing the attachments of one note, by id (preferred) or title. With includePaths, also where each attachment's files are on disk; with firstImage, only the note's lead visual. Returns: each attachment's name, content type, and id (use with save-attachment/fetch-attachment). includePaths adds identifier, uti, kind, bodyIndex, assetPaths (the attachment's own files), previewPath (Notes' largest rendered thumbnail, always an image file), and paths. firstImage returns {firstImage, orderSource}: the first image in body order even when its asset has not downloaded (path null), else the first scan or drawing, else null. Do not use when: you want the attachment bytes (fetch-attachment) or files on disk (save-attachment, export-attachments). Note: includePaths and firstImage need the note id and Full Disk Access; they read NoteStore and the Notes data folder read-only. Treat the returned paths as local data: copy files out with export-attachments rather than handing raw paths on.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list-attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Note ID (preferred - more reliable than title): x-coredata id, Notes UUID, or numeric key | |
| title | No | Note title (use id instead when available) | |
| account | No | Account containing the note (ignored if id is provided) | |
| firstImage | No | Return only the note's lead visual in body order instead of the list (requires id and Full Disk Access) | |
| includePaths | No | Add on-disk assetPaths, previewPath, and paths to each attachment (requires id and Full Disk Access) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| firstImage | No | ||
| pathsError | No | ||
| attachments | No | ||
| orderSource | No |