analyze_leaks
Identify and diagnose memory leaks in iOS apps by recording a Leaks trace, with automatic retain cycle detection and suggested fixes.
Instructions
Record a Leaks trace and report all memory leaks with retain cycle detection and fix suggestions.
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": {
"bundle_id": "<bundle_id>",
"device_id": "<device_id>"
},
"name": "analyze_leaks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle_id | Yes | App bundle ID, e.g. com.mycompany.myapp | |
| device_id | Yes | Simulator UUID or physical device ID. Use list_devices to find it. | |
| time_limit_seconds | No | Recording duration in seconds (default 20s). |