query_graph
Search a code graph to find functions matching a query. Supports filtering by active build defines for config-aware analysis.
Instructions
Search code graph. Automatically indexes relevant files.
If preprocess_config() was called on the workspace, filters by active defines. Otherwise returns all functions (no filtering).
Parses source files into the graph with AST (no LLM). Use summarize_function() on individual results for deep analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query | |
| max_results | No | Max results to return (default: 10) | |
| workspace_path | No | Target workspace (default: last configured) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |