graph_query
Query the code knowledge graph to explore callers, callees, imports, subclasses, and shortest paths between symbols. Use operations like neighbors, overview, and surprising_connections for deep code analysis.
Instructions
Raw access to the code knowledge graph (calls, inheritance, imports), for the questions the dedicated tools do not cover: find_usages, impact and describe_symbol answer the common ones with the results already shaped. operation: callers | callees | subclasses | superclasses | imports | neighbors | shortest_path | overview | surprising_connections | status. symbol is matched as a case-insensitive substring; results carry file:line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | neighbors: hops out (1-6). | |
| limit | No | Max edges. | |
| top_n | No | overview / surprising_connections: items to return. | |
| source | No | Source name. Omit when only one source applies. | |
| symbol | No | Symbol the operation acts on (not needed by overview / status). | |
| target | No | Destination symbol for shortest_path. | |
| max_hops | No | shortest_path: max path length. | |
| operation | Yes | One of the operations listed in the tool description. | |
| relation_filter | No | neighbors: calls | inherits | imports | imports_from | contains. | |
| min_community_size | No | overview: minimum community size. |