append-to-note
Append text or HTML to an exact Apple Note by ID after verifying its content hash, with readback confirmation that the new content was written.
Instructions
Use when: adding content to one exact 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 or the note changed since the read. Safety: protected native-object notes use native end-append with scopeText; ordinary notes retain guarded HTML editing. Optional ifFolderId, ifAncestorFolderId, and forbiddenAncestorFolderIds are re-checked inside the write AppleScript for ordinary notes, and as a separate read just before a native append. Notes.app normalizes HTML, so rich formatting is not claimed as byte-identical. Native-append HTML subset (protected notes only; ordinary notes accept any HTML Notes.app renders): Native append accepts , with href on and a font-size style on as the only attributes; a native table is refused here — use create-table; everything else needs update-note. Native append also requires scopeText, the default blank-line separator and position 'after'.
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>",
"content": "<content>"
},
"name": "append-to-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 | Format of the content being appended: 'plaintext' (default) or 'html' | plaintext |
| content | Yes | Text to append to the note body | |
| position | No | Where to insert: 'after' appends to the end (default); 'before' inserts directly below the note's title line, so the title stays first | after |
| scopeText | No | Existing unique phrase required for native append to protected notes | |
| separator | No | String placed between existing content and new content (default: two newlines) | |
| ifFolderId | No | Precondition: the note must currently be in exactly this folder (id from list-folders). Re-checked immediately before the write. | |
| 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. | |
| 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 |