get_neighbors
Retrieve a node’s direct neighbors and edge details to inspect code dependencies, with optional relation-type filtering and token-budget control.
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 |
|---|---|---|---|
| repo | No | The project to read: its id or key, or with graphicle mcp a synced folder. Defaults to this connection's project. | |
| as_of | No | The code-graph episode to read: an episode id, a label such as a commit sha, latest or working. Defaults to the project's current code graph. | |
| label | No | ||
| node_id | No | Alias for label (node id) | |
| token_budget | No | Max output tokens | |
| relation_filter | No | Optional: filter by relation type |