get_unused_symbols
Identifies unused functions and classes in your codebase by analyzing call graphs and import dependencies, filtering out common false positives like dunder methods and entry points.
Instructions
Find functions and classes with zero inbound references (dead code detection).
Analyzes the caller index and import graph to identify symbols that are never called, subclassed, or referenced from other code.
Excludes common false positives: dunder methods, framework-decorated handlers, entry points, and exception classes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_type | No | What to search for: "all", "functions", or "classes". | all |
| include_tests | No | If True, also scan test files for unused code. | |
| max_results | No | Maximum results per category. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||