find_dead_code
Scan Python files or directories to detect unused imports, functions, variables, and arguments, using cross-module analysis to reduce false positives.
Instructions
Detect unused imports, functions, variables, and arguments in Python code. Supports cross-module analysis to reduce false positives.
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 |
|---|---|---|---|
| path | Yes | File or directory path to scan. | |
| category | No | Filter by category. Omit for all categories. | |
| min_severity | No | Minimum severity level (default: info). | info |