get-paragraph-link
Generate a direct applenotes:// link that opens Apple Notes at a specific paragraph or heading, enabling precise sharing or revisiting of exact note content.
Instructions
Use when: you need a link that opens Notes at one paragraph (for example a heading) of a note. Returns: a direct applenotes://showNote?identifier=¶graphID= url and the selected paragraph, only when that paragraph's stored ID is present and appears in no other paragraph of the note. Otherwise an error whose structuredContent.reason says why: paragraph-id-shared, paragraph-id-missing, no-match, ambiguous-paragraph (pass occurrence or a longer snippet), occurrence-out-of-range, ambiguous-note, encrypted. Do not use when: you want a link to the whole note (get-note-link). Safety: never changes Notes or a paragraph ID, so a paragraph without a unique ID cannot be linked. Requires Full Disk Access. Without recordAnchor it writes nothing; with recordAnchor it also writes the local anchor registry file (mode 0600), so the tool is not marked read-only. A later edit in Notes can replace the ID and break the link.
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": "get-paragraph-link"
}
}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, compared the same way | |
| 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 (case, spacing and Unicode width are ignored); 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 | |
| recordAnchor | No | Also record a paragraph anchor for the linked paragraph so resolve-paragraph-anchor can find it after edits (default false; writes only the local anchor registry) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| url | No | ||
| anchorId | No | ||
| paragraph | No | ||
| identifier | No |