Diagnose Imports
cc_diagnose_importsDiagnose import problems in Python, JavaScript, or TypeScript files by detecting unused bindings, duplicates, risky relative imports, and import-order issues.
Instructions
Diagnoses import issues in Python, JavaScript, or TypeScript files.
Args:
path (string): Path to a .py, .js/.jsx/.mjs/.cjs, or .ts/.tsx/.mts/.cts file
Detects: Unused bindings, duplicates, relative-import risks, and import-order issues
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": "cc_diagnose_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a supported Python, JavaScript, or TypeScript file |