Get Neighborhood
get_neighborhoodRetrieve a note's n-hop subgraph as node and edge lists, with links treated as undirected. Specify note path, title, or alias and hop radius (default 2).
Instructions
Get the n-hop subgraph around a note: an explicit node list and edge list, treating links as undirected for hop counting.
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": "get_neighborhood"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hops | No | Hop radius (default 2). | |
| path | Yes | Note path, title, or alias. |