simulator_heal
The MCP tool that takes input back on the Team's Simulator when Xcode's Device Hub has taken it, by restarting SpringBoard.
simulator_heal gives input back to the Team’s running Simulator after Xcode’s Device Hub has taken it. When that happens, taps, typing and buttons report success but do nothing, and input tools fail with a message that ends Call simulator_heal to take input back (see Errors every Simulator tool can return). To take input back, the tool restarts SpringBoard. That ends every running app on the device, for everyone using the shared Simulator, so relaunch yours with simulator_launch_app afterwards. It is marked destructive. When the device was not affected, it does nothing and reports reclaimed: false. It can take up to 3 minutes.
| Read-only | Destructive | Idempotent |
|---|---|---|
| No | Yes | No |
Inputs
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
teamId |
string (UUID) | Yes | — | The Team, from list_teams |
simulator |
string | No | The Team’s default device | Which device, by id from list_simulators |
Result
| Field | What |
|---|---|
ok |
true |
reclaimed |
true when input was taken back (SpringBoard restarted); false when nothing needed doing |
{ "ok": true, "reclaimed": true }Errors
The errors every Simulator tool can return: see start_simulator.
Example
{"name": "simulator_heal", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000"}}