codegraph_query
Query a codebase knowledge graph using natural language to find dependencies, callers, or specific node details. Combines graph traversal and node lookup for efficient code analysis.
Instructions
Ask a structural question about the codebase OR look up a specific node by name — or both in one call. Pass question for natural-language traversal: what calls X, what does module Y depend on. Pass node for fast single-node lookup: returns type, file, depends_on, used_by. Pass both to get node detail + surrounding graph context together. Returns structured text within token_budget. Use before reading any files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project root | |
| question | No | Natural language question about the codebase | |
| node | No | Node name or partial name to look up (type, file, deps, callers) | |
| token_budget | No | Max tokens in response (default 2000) |