get_graph
Retrieve a graph of notes and their links, scoped by folder or root note with depth, to map vault structure and semantic connections without scanning the entire vault.
Instructions
Many notes at once and the edges between them — the heavy graph tool, and the only one that reaches for the whole vault. For one note's surroundings use get_neighbors; for who links to it, get_backlinks.
Nodes are {t} (t = title). Edges reference nodes BY POSITION in the nodes array: edges[0] = [2, 5] means nodes[2] links to nodes[5]. semantic_edges are undirected and come from embedding similarity rather than written links, with the cosine as a third number. unresolved_links are [[wikilink]] targets matching no note title — dangling, so they have no node index.
Unscoped this reaches for the ENTIRE vault and stops at max_nodes: truncated: true means you hold a recency-ordered prefix, NOT the shape of the vault. Scope with folder_id or root_title+depth rather than raising the cap.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Hop count for root_title; ignored without it | |
| folder_id | No | Restrict to notes in this folder and its descendant folders | |
| max_nodes | No | Ceiling on nodes returned, most recently edited first. The reply says `truncated: true` when it applies — scope with folder_id or root_title instead of raising this | |
| min_score | No | Cosine floor for semantic_edges — lower to see more (noisier) edges | |
| root_title | No | Keep only nodes within `depth` wikilink-hops of this note — resolved like get_note: exact, then unique prefix, then unique substring, case-insensitive | |
| unresolved_only | No | If true, return only { unresolved_links } without nodes and edges (fast check for broken links) | |
| include_semantic | No | Include semantic_edges at all |