Launch an app by package id
launch_packageStart an installed Android app by package name: resolve its launcher activity and run it, optionally waiting until it is displayed.
Instructions
Launch an installed app by package id: resolve its LAUNCHER activity (cmd package resolve-activity --brief) and start it (am start -n, with -W when wait is true). Returns the resolved component so later calls can use start_activity without re-resolving. The monkey -p <package> 1 one-liner exists, but this keeps everyday launches off the shell escape hatch.
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": "launch_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Pass -W and wait for the launch to be reported as displayed (default false). | |
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| package | Yes | Package name to launch, e.g. "com.android.settings". | |
| timeout_ms | No | Timeout in milliseconds (default 30000; raise it when wait is true). |