create-paragraph-anchor
Save a durable reference to a specific paragraph so it remains findable after note edits and shared paragraph links keep working.
Instructions
Use when: you want a reference to one paragraph that can be found again after the note is edited, for example before sharing a paragraph link that should keep working. Returns: the anchor (anchorId, note identifier, paragraph ID and its status, normalized text, fingerprints of the paragraph and its neighbours, block index, created time), whether it is new, and the paragraph's current direct url when its ID is unique. Do not use when: you only need a link right now (get-paragraph-link). Safety: reads the NoteStore database (Full Disk Access) and never changes Notes. Writes one local file, the anchor registry (APPLE_NOTES_MCP_ANCHOR_FILE, default ~/Library/Application Support/apple-notes-mcp/paragraph-anchors.json, mode 0600), which stores the paragraph's text. Unlike get-paragraph-link, a paragraph with a shared or missing ID can be anchored. Recording the same paragraph again returns the existing anchor.
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": "create-paragraph-anchor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Exact note ID (x-coredata id, Notes UUID, or numeric key); give id or title | |
| match | No | The whole paragraph text | |
| title | No | Exact note title; must match one note unless folder narrows it | |
| folder | No | With title only: the note's folder name or full path as list-folders shows it | |
| contains | No | Snippet of the paragraph; give one of contains, match, blockIndex | |
| blockIndex | No | The paragraph's blockIndex from list-note-paragraphs | |
| occurrence | No | Which match to use (1-based) when contains or match hits several paragraphs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| anchor | No | ||
| created | No |