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'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"target": "<target>"
},
"name": "find_path_between_notes"
}
}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). |