Graph Neighborhood
vault_graph_neighborhoodGenerates a node/edge graph around a note's link neighborhood for graph views, supporting configurable hop depth, node caps, and optional semantic-similarity 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 | |||