graph.get_neighbors
Retrieve all neighboring nodes of a note in the knowledge graph using BFS traversal, including outLinks, backLinks, and shared-tag connections. Requires graph to be built.
Instructions
Get neighbor nodes of a note in the knowledge graph (BFS traversal). Includes outLinks, backLinks, and shared-tag neighbors. Graph must be built first.
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": "graph.get_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| neighbors | Yes | ||
| total | Yes |