Graph Neighborhood
vault_graph_neighborhoodRetrieves the link graph around a note, returning connected notes as nodes and edges. Supports adjustable depth, node limits, and optional semantic edges.
Instructions
Return the link neighborhood of a note as a node/edge graph (app-only).
Called by the SPA graph view via app.callServerTool().
Not visible to the LLM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Center note path. | |
| depth | No | How many hops to traverse (default 1). | |
| max_nodes | No | Soft cap on returned node count (default 200). BFS and any semantic expansion both stop once the cap is hit; the response sets ``truncated=True``. Bounds dense-vault depth=2 traversals that would otherwise bog down vis-network. | |
| include_semantic | No | When True, add dashed semantic-similarity edges for each interior node (requires embeddings to be configured; silently omitted when unavailable). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||