debug_setup
Checks required Frida, LLDB, and debugserver components, then installs or repairs missing pieces with actionable instructions so iOS debugging can start.
Instructions
Check required Frida/LLDB/debugserver components and return actionable missing-component instructions. action=install installs absent device debugserver from the matching local Xcode iOS image or a workspace local_debugserver_path. action=repair reapplies an existing device-provided signing profile. Installation checks execution; verify actual attach separately with debug_inspect(backend=lldb).
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": {
"device_id": "<device_id>",
"bundle_id": "<bundle_id>"
},
"name": "debug_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | check | |
| bundle_id | Yes | ||
| device_id | Yes | ||
| local_debugserver_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| elapsed_ms | Yes | ||
| request_id | Yes |