get_context
Retrieve deep context for any graph node, including source code and all connected edges with code snippets. Use to investigate node relationships and code details.
Instructions
Get deep context for a graph node: source code + full graph neighborhood.
Shows ALL incoming and outgoing edges grouped by type, with source code at each connected node's location. Works for ANY node type.
Use this after find_nodes or query_graph to deep-dive into a specific node.
Output includes:
Node info (type, name, semantic ID, location)
Source code at the node's location
All outgoing edges (what this node connects to)
All incoming edges (what connects to this node)
Code context at each connected node's location
Primary edges (CALLS, ASSIGNED_FROM, DEPENDS_ON, etc.) include code context. Structural edges (CONTAINS, HAS_SCOPE, etc.) are shown in compact form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| semanticId | Yes | Exact semantic ID of the node (from find_nodes or query_graph) | |
| contextLines | No | Lines of code context around each reference (default: 3) | |
| edgeType | No | Filter by edge type (comma-separated, e.g., "CALLS,ASSIGNED_FROM") |