Launch app
app_launchLaunch an Android app's launcher or specified activity on a device and report launch time, optionally force-stopping first for a cold start.
Instructions
Start an app's launcher activity (or a given activity) and report launch time.
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": {
"package": "<package>"
},
"name": "app_launch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial from devices_list. Optional when exactly one device is online. | |
| package | Yes | Application package / applicationId | |
| activity | No | Activity class, e.g. .MainActivity or com.x.MainActivity. Defaults to the launcher activity. | |
| stopFirst | No | Force-stop the app before launching (cold start) |