update-note
Replace the body of one exact Apple Note by ID after reading it; the expected content hash stops the write if the note changed.
Instructions
Use when: replacing the body of one exact Apple Note after reading it by id. Returns: exact id, new content hash, and visible-text readback verification. Do not use when: you only have a title, the note changed since the read, or the note has attachments. Safety: requires the exact note id and expectedContentHash from get-note-content. The server checks rich metadata revision, atomically checks the AppleScript body, blocks native objects/checklists, and verifies actual link destinations after saving. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside the same AppleScript as the write. Preserve returned HTML links unless allowLinkChanges is explicitly requested. Notes.app normalizes HTML, so rich formatting is not claimed as byte-identical.
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>",
"newContent": "<newContent>"
},
"name": "update-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 | |
| format | No | Content format: 'plaintext' (default) or 'html' for rich formatting | plaintext |
| newTitle | No | New title for plaintext updates. Ignored when format is 'html'; include the visible title as the first line of newContent instead. | |
| ifFolderId | No | Precondition: the note must currently be in exactly this folder (id from list-folders). Re-checked immediately before the write. | |
| newContent | Yes | New note body. AppleScript cannot produce true Apple Notes checklists; checkbox inputs and `- [ ]` markdown do not render as checkable items. Use a plain list and convert in Notes.app with ⇧⌘L. | |
| 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. | |
| allowLinkChanges | No | Set true only when the user explicitly intends to remove, relabel or change existing links. Defaults to preserving all links. | |
| 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. | |
| 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 | ||
| shared | No | ||
| contentHash | No | ||
| previousContentHash | No | ||
| verifiedVisibleText | No |