codegraph_query
Query a codebase knowledge graph to answer structural questions, resolve dependencies, or look up node details such as type, file, and callers. Use it to get concise context before reading files.
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 |
|---|---|---|---|
| node | No | Node name or partial name to look up (type, file, deps, callers) | |
| path | Yes | Project root | |
| question | No | Natural language question about the codebase | |
| token_budget | No | Max tokens in response (default 2000) |