list-note-links
Extract and list hyperlinks, rich-link cards, note links, and section links from Apple Notes by note ID, folder, account, or library, with source and target details.
Instructions
Use when: you need the links in one note (by exact id) or across a folder (with its subfolders by default), an account, or the whole library, with each link's kind: inline (a hyperlink on text), card (a rich link preview), note (a native link chip to another note) or section (a native link chip to a heading or paragraph). Returns: one page of links, newest-modified note first, each with its URL, label, linkSafe, target note and paragraph UUIDs for Notes deep links, card previewPath, and its source noteId, note title, folder path (as list-folders prints it) and account; plus per-kind counts and page info (call again with offset set to page.nextOffset while page.hasMore is true). Do not use when: you want one note's full structure (get-note-structure) or its formatting (get-note-blocks). Safety: read-only; reads the NoteStore database directly and requires Full Disk Access. Inline links need every body in scope decoded, so they are included only with includeInline (default true for id, false for a folder, account or library scan). Recently Deleted is skipped unless the note is requested by id.
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": "list-note-links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | One exact note ID (do not combine with account/folder) | |
| kinds | No | Only these link kinds | |
| limit | No | Maximum links to return (default 200, max 2000) | |
| folder | No | Folder name or path as list-folders prints it, such as Work/Clients (escape a literal slash as \/) | |
| offset | No | Index of the first link to return (default 0); use page.nextOffset | |
| account | No | Account name (exact or unique-prefix match) | |
| includeInline | No | Also decode note bodies for inline hyperlinks (slower). Default true for id, false otherwise | |
| includeSubfolders | No | With folder, also list notes in its subfolders (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| links | No | ||
| scope | No | ||
| counts | No | ||
| notesInScope | No | ||
| inlineIncluded | No | ||
| notesWithoutBody | No |