Get unified symbol graph
get_symbol_graphBuild a local symbol graph from source files, combining imports, calls, inheritance, tests, and routes to trace paths and analyze blast radius for cross-file dependencies.
Instructions
Build a bounded local symbol-level graph combining modules, definitions, imports, references, calls, inheritance, tests, routes, events, and dependency-injection signals, with trace paths and blast-radius analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | Optional symbol, path, or node identifiers to prioritize | |
| trace_to | No | Optional node, symbol, or path at the end of a trace | |
| directory | No | Project directory | . |
| max_edges | No | Maximum graph edges returned | |
| max_files | No | Maximum source files to inspect | |
| max_nodes | No | Maximum graph nodes returned | |
| edge_kinds | No | Relationship kinds to include | |
| trace_from | No | Optional node, symbol, or path at the start of a trace | |
| include_tests | No | Include test symbols and test discovery edges | |
| redact_secrets | No | Redact common secrets in evidence snippets | |
| include_signals | No | Detect static route, event, and dependency-injection signals | |
| max_path_length | No | Maximum edges in a returned trace | |
| trace_direction | No | Direction used by trace_path | forward |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | Yes | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| schema_version | Yes |