get_complexity_metrics
Analyze source code complexity with AST-based metrics including cyclomatic complexity, nesting depth, and function counts. No prior indexing needed.
Instructions
Analyze code complexity for a source file using tree-sitter AST parsing. Returns function/class counts, line metrics, cyclomatic complexity, nesting depth, and parameter counts.
No prior indexing required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the repository | |
| file_path | Yes | File path relative to repo root to analyze |