Find Orphans
vault_find_orphansFind notes with no incoming links from other notes or canvases to identify orphaned notes for vault maintenance and graph integration.
Instructions
Find notes with no incoming links from other notes or canvases. A note that only links to itself still counts as an orphan.
Example: vault_find_orphans({}) Example: vault_find_orphans({ exclude_folders: ["Templates", "Archive"], limit: 20 })
When to use: Vault maintenance — surfacing notes to integrate into the graph. Link an orphan by mentioning it from a relevant note with vault_patch_note. Prefer vault_get_backlinks to check the connectivity of one specific note rather than scanning the whole vault.
Parameters:
exclude_folders replaces the defaults, it does not add to them — list a default yourself to keep it. Pass [] for no exclusions. Each entry names a whole folder, subfolders included: "Projects" covers "Projects/Archive" but not "ProjectsOld/", ignoring ASCII letter case. Excluded notes are left out of the results; links from them still count as incoming links. To keep the daily notes folder excluded, list the folder vault_get_daily_note's path starts with.
limit applies after exclusions and sorting; nothing in the response signals truncation; raise limit for more.
Behavior: Results can lag a file change by a few seconds.
Errors:
An empty array means no orphans were found (after exclusions), not an error.
"too many excluded folders" — pass at most 994 exclude_folders entries, then retry.
"[SqliteError]: …" / "[IndexIntegrityError]: …" — the index failed, not the call; the message says what to do
Returns: JSON array of note metadata: path, title (the title property; file name without .md when missing or not text), tags (the tags property; vault_update_properties edits it), body_tags (#tags in the note's text, one per spelling; vault_replace_in_note edits them; absent when none), related ([] when missing), folder (top-level, "" at the root), type (null when missing or not text), created (null when missing or not an ISO date), modified (ISO 8601 file time), bytes (on-disk size), and when present leading_callout (the opening callout, { type, title, body }) and additional_properties (every property but title, type, created, related and tags). Sorted by most recently modified.
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": "vault_find_orphans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 50) | |
| exclude_folders | No | Folder paths to exclude (e.g. Projects; default: the daily notes folder, "Templates", "About Me") |