delete-note
Safely move one exact note to Recently Deleted only after its content hash matches the revision you reviewed, so newer edits are never lost.
Instructions
Use when: moving one exact note to Recently Deleted after reading and reviewing it. Returns: confirmation with the exact id. Do not use when: you only have a title or the note changed since review. Safety: requires id and expectedContentHash from get-note-content. The body comparison and delete happen in one AppleScript, so a newer edit is preserved. Refuses a note already in Recently Deleted, where a delete would be permanent. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside that AppleScript too. Copy-then-retire: pass guardNoteId and expectedGuardContentHash (the verified copy's contentHash) to delete only while the copy still has that revision, is unlocked, is outside Recently Deleted, and is not a Quick Note; requireActiveNoteId requires the same of a second note without fingerprinting it. The guard needs Full Disk Access to rule out a Quick Note. The copy's body, lock state, and folder are checked again inside the delete AppleScript, but the pair is not one transaction.
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>",
"expectedContentHash": "<expectedContentHash>"
},
"name": "delete-note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Exact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key | |
| ifFolderId | No | Precondition: the note must currently be in exactly this folder (id from list-folders). Re-checked immediately before the write. | |
| guardNoteId | No | A second note (usually the verified copy) that must still match expectedGuardContentHash, be unlocked, stay outside Recently Deleted, and not be a Quick Note. Needs Full Disk Access | |
| timeoutSeconds | No | Per-call timeout in seconds (1-120) for each Notes.app automation step this call runs, overriding APPLE_NOTES_MCP_TIMEOUT_MS. A timed-out write is uncertain, not failed: read the note by id before any retry. | |
| ifAncestorFolderId | No | Precondition: the note must be inside this folder or any of its subfolders. Re-checked immediately before the write. | |
| expectedContentHash | Yes | Revision token returned by get-note-content for this exact ID. The mutation stops if the note changed since that read. | |
| requireActiveNoteId | No | A second note that must still exist, be unlocked, stay outside Recently Deleted, and not be a Quick Note. Its content is not fingerprinted. Needs Full Disk Access | |
| expectedGuardContentHash | No | get-note-content contentHash of guardNoteId; required with guardNoteId | |
| forbiddenAncestorFolderIds | No | Precondition: the note must not be inside any of these folders or their subfolders (for move-note and batch-move-notes, neither may the destination). Re-checked immediately before the write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | No | ||
| title | No | ||
| wasShared | No | ||
| guardNoteId | No | ||
| guardContentHash | No | ||
| previousContentHash | No | ||
| requireActiveNoteId | No |