Get a node's neighborhood
codetopo_neighborhoodExplore a code graph node's neighborhood by retrieving the subgraph within a set number of hops in both directions, excluding contains/defines edges.
Instructions
The subgraph within a few hops of a node, in both directions (contains/defines excluded).
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": {
"db_path": "<db_path>",
"node": "<node>"
},
"name": "codetopo_neighborhood"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node id at the center. | |
| depth | No | Hops to walk (default 1). | |
| db_path | Yes | Path to the index database. |