get_unused_symbols
Identify unused functions and classes with zero inbound references, excluding dunder methods, framework handlers, entry points, and exceptions.
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 |
|---|---|---|---|
| max_results | No | Maximum results per category. | |
| symbol_type | No | What to search for: "all", "functions", or "classes". | all |
| include_tests | No | If True, also scan test files for unused code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||