get_neighbors
Retrieve direct neighbors of a node—incoming and outgoing edges—grouped by type for quick graph exploration without code snippets.
Instructions
Get direct neighbors of a node — all incoming and/or outgoing edges.
Returns edges grouped by type with connected node summaries.
Use this when you need:
"What does this node connect to?" (outgoing)
"What connects to this node?" (incoming)
Simple graph exploration without Datalog
Direction options:
outgoing: Edges FROM this node (calls, contains, depends on)
incoming: Edges TO this node (callers, containers, dependents)
both: All edges (default)
Edge type filter: Pass edgeTypes to see only specific relationships. Omit to get all edge types.
Cheaper than get_context (no code snippets). Use when you only need the graph structure, not source code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| semanticId | Yes | Semantic ID of the node | |
| direction | No | Edge direction: outgoing, incoming, or both (default: both) | |
| edgeTypes | No | Filter by edge types (e.g., ["CALLS", "CONTAINS"]). Omit for all. |