launch_app
Launch an installed iOS app in the foreground on a connected device, restarting it if already running, and optionally buffer its console logs for retrieval.
Instructions
Launch an app in the foreground, restarting it if it is already running. With captureLogs, the app's console output (print/NSLog and os_log/Logger messages) is buffered for get_app_logs, keeping the last 5000 lines; starting a new capture discards the old buffer. The app must already be installed. Use open_url to enter through a deep link.
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": {
"bundleId": "<bundleId>"
},
"name": "launch_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| bundleId | Yes | App bundle ID, e.g. com.example.MyApp (see list_apps) | |
| logLevel | No | With captureLogs: debug (default) includes Logger.debug; info drops debug; stdout captures only print/NSLog | |
| arguments | No | Launch arguments passed to the app | |
| captureLogs | No | Buffer console output for get_app_logs (default false) | |
| environment | No | Environment variables set for the app |