get_graph_neighbors
Retrieve notes connected to a given note within N hops, following outgoing, incoming, or both link directions to explore a local graph.
Instructions
Notes connected to a note within N hops (local graph), following outgoing, incoming or both directions.
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": {
"file": "<file>"
},
"name": "get_graph_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Note path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]] | |
| depth | No | Default 1 | |
| limit | No | Max results (default 300) | |
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| direction | No |