detect_unused_imports
Find potentially unused Swift import statements using heuristic analysis against a built-in framework symbol database to identify cleanup candidates.
Instructions
Detect potentially unused Swift import statements using heuristic analysis. Checks against a built-in symbol database for popular iOS frameworks (UIKit, RxSwift, SnapKit, etc.).
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": {
"projectPath": "<projectPath>"
},
"name": "detect_unused_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confidence | No | Confidence filter: high=certain only, medium=likely, low=all suspects (default: medium) | |
| projectPath | Yes | Path to the Xcode project root directory | |
| targetPaths | No | Specific files/directories to analyze (default: entire project) | |
| excludePatterns | No | Glob patterns to exclude |