graph_neighbors
graph_neighborsRetrieve neighboring nodes in a codebase graph by specifying start entities, direction, depth, and edge or node kind filters. Ideal for exploring dependencies or relationships.
Instructions
Graph tool for adjacency questions: traverse outward from one or more start entities with explicit direction, depth, and edge filters.
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": {
"startEntities": "<startEntities>"
},
"name": "graph_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| direction | No | ||
| edgeKinds | No | ||
| nodeKinds | No | ||
| projectId | No | ||
| projectRef | No | ||
| startEntities | Yes | ||
| traversalDepth | No | ||
| includeHeuristicEdges | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _hints | Yes | ||
| result | Yes | ||
| toolName | Yes | ||
| projectId | Yes |