remove_dead_code
Identify exported symbols never imported by other files and delete them. Use dry_run to preview results before applying changes.
Instructions
Find exported symbols that are never imported by any other file in the project. dry_run=true (default) reports only; dry_run=false deletes them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "remove_dead_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true (default), only report — do not delete | |
| file_pattern | No | Limit analysis to files matching this path substring |