find_path_between_notes
Find the shortest link path between two notes in an Obsidian vault. Get clear errors when notes are missing or no connection exists.
Instructions
Find the shortest link path between two notes. Requires OBSIDIAN_VAULT_PATH to be set for the targeted vault. Returns a precondition-style error 'note not found: ' when the target note is not present in the vault — distinct from 'found but no connections'/'no path between endpoints'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source note path. | |
| target | Yes | Target note path. | |
| vaultId | No | Optional vault ID (defaults to configured default vault). | |
| maxDepth | No | Maximum path length to search (default: 5). |