get_node_neighborhood
Performs breadth-first traversal from a discourse node, following page references up to N hops to return nodes grouped by hop distance for neighborhood exploration.
Instructions
Perform a breadth-first traversal from a node, following page references up to N hops deep. Returns nodes organized by hop distance. Useful for exploring the neighborhood of a discourse node.
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": {
"uid": "<uid>"
},
"name": "get_node_neighborhood"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The starting page UID for traversal. | |
| depth | No | Number of hops to traverse (1-4). Default 1. | |
| graph | No | Graph name or nickname. | |
| direction | No | Direction of traversal. Default: both. | both |