get-note-metadata
Retrieve note metadata AppleScript cannot expose—pinned state, checklist flags, trash/recovery state, preview snippet, and password hint—by note ID.
Instructions
[BETA] Use when: reading note metadata AppleScript cannot expose — pinned state, checklist flags, trash/recovery state, preview snippet, password hint — by id. Returns: a metadata object; fields vary by macOS version and are omitted when unavailable. Do not use when: you need the body (get-note-content) or per-item checklist state (get-checklist-state). Note: reads the NoteStore SQLite database read-only and requires Full Disk Access. BETA — the database schema changes between macOS releases, so some fields may be absent. Works on trashed notes that AppleScript can no longer resolve.
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-metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Note ID: x-coredata id, Notes UUID, or numeric key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pinned | No | ||
| snippet | No | ||
| hasChecklist | No | ||
| passwordHint | No | ||
| widgetSnippet | No | ||
| smartFolderQuery | No | ||
| passwordProtected | No | ||
| recoveringFromTrash | No | ||
| hasChecklistInProgress | No |