detect_large_files
Scan an Xcode project for large images, videos, fonts, JSON, plists, storyboards, and asset catalogs that increase app size, using size thresholds to identify files worth optimizing.
Instructions
Find large files and resources in the project that impact app size. Scans images, videos, fonts, JSON, xcassets, and other file types.
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_large_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categories | No | File categories to scan (default: ['all']) | |
| projectPath | Yes | Path to the Xcode project root directory | |
| thresholdKB | No | Minimum file size in KB to report (default: 500) | |
| checkXcassets | No | Analyze .xcassets image sets individually (default: true) |