get_note_connections
Retrieve all connections for a note in Obsidian, including outgoing links, backlinks, and tags. Distinguishes between a missing note and a note with no connections.
Instructions
Get all connections for a note: outgoing links, backlinks, tags. 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": {
"filepath": "<filepath>"
},
"name": "get_note_connections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels of connections to traverse (default: 1). | |
| vaultId | No | Optional vault ID (defaults to configured default vault). | |
| filepath | Yes | Path to the note (relative to vault root). |