vault_neighborhood
Explore the graph neighborhood around an Obsidian note by following wikilinks, returning related notes grouped by hop distance to reveal clusters, context, and connections.
Instructions
Explore the graph neighborhood around a note by traversing wikilinks. Returns notes grouped by hop distance from the starting note, with frontmatter metadata for each node. Useful for understanding clusters, finding related context, and discovering connections. Paths in this tool's output are formatted as markdown links [vault-relative-path.md](obsidian://...) so users can Cmd/Ctrl-click to open in Obsidian. Preserve the link form when relaying paths to the user; pass only the bracket text (e.g. 01-Projects/Foo/note.md) to other vault tools' path arguments, never the full markdown link.
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": {
"path": "<path>"
},
"name": "vault_neighborhood"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the starting note (supports short names, e.g. 'devlog') | |
| depth | No | Traversal depth — how many hops to follow (default: 2, max: 5) | |
| direction | No | Link direction to follow (default: both) | both |
| max_nodes | No | Max graph nodes to list, closest first (default: 50). The rest are reported as '+N not shown'. | |
| semantic_limit | No | Max semantic results to include (default: 5) | |
| include_semantic | No | Append semantically related but unlinked notes (requires VAULT_PKM_OPENAI_KEY, default: false) |