relaunch_app
Restart an iOS Simulator or Mac app so its network traffic routes through configured rules and requests are recorded; use after setting network rules on an app that was already running.
Instructions
Quit and reopen a simulator app with request monitoring, so every connection it makes goes through its rule and its requests are recorded. Do this after the first set_network for an app that was already running.
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": {
"app": "<app>",
"simulator": "<simulator>"
},
"name": "relaunch_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app: a bundle ID like com.me.MyApp, an app name, or * for every app in a simulator. | |
| simulator | Yes | For iOS Simulator apps: booted, any, a device name or a UDID. Leave out for a Mac app. |