get_refactor_candidates
Find functions with high cyclomatic complexity called from many files, candidates for shared module extraction during architecture review.
Instructions
Find functions with high complexity called from many files — candidates for extraction to shared modules. Use during architecture review to identify hotspots worth refactoring. Read-only. Returns JSON: [{ symbol_id, name, file, cyclomatic, callerCount }]. Set output_format: "toon" for lossless TOON encoding — cheaper LLM tokens on tabular payloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_cyclomatic | No | Min cyclomatic complexity (default: 5) | |
| min_callers | No | Min distinct caller files (default: 2) | |
| limit | No | Max results (default: 20) | |
| output_format | No | Output format. "json" (default) returns JSON, "markdown" returns LLM-friendly fenced markdown (tool-specific), "toon" returns Token-Oriented Object Notation — 30-60% fewer tokens on tabular data, fully lossless. |