neighbors
Retrieve adjacent nodes grouped by relationship type such as calls, imports, and contains for any code entity ID.
Instructions
All adjacent nodes of an id, grouped by edge family (calls, imports, contains, related, …).
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": {
"id": "<id>"
},
"name": "neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |