find_dead_code
Identify uncalled functions (dead code) in Solidity contracts to clean up unused code or improve code coverage. Supports filtering by entry points, inherited functions, and test frameworks.
Instructions
Finds functions with no callers (potential dead code). Use this during code cleanup, auditing for unused code, or understanding code coverage. Can exclude known entry points (external/public functions), test framework functions, and inherited functions. Returns uncalled functions with their metadata. Some functions may be called dynamically and not detected. Supports pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| has_more | No | True if there are more results beyond this page | |
| total_count | Yes | ||
| error_message | No | ||
| dead_functions | Yes |