find_dead_code
Identify unreachable Python code through Control Flow Graph analysis to remove dead code and improve code quality.
Instructions
Find unreachable code using Control Flow Graph (CFG) analysis
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "find_dead_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_severity | No | Minimum severity: info, warning, error (default: warning) | |
| path | Yes | Path to Python code to analyze |