get_neighbors
Retrieve all direct neighbors of a graph node with edge details, optionally filtering by relation type and limiting output tokens for focused context.
Instructions
Get all direct neighbors of a node with edge details.
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_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| node_id | No | Alias for label (node id) | |
| project_path | No | Absolute path to a project directory containing graphify-out/graph.json. Optional — defaults to the graph this server was started with. | |
| token_budget | No | Max output tokens | |
| relation_filter | No | Optional: filter by relation type |