launch_app
Start an Android app on a connected device, optionally clearing its data to simulate a first-run test. Specify an activity or device serial when needed.
Instructions
Launch an app, optionally from a clean state.
Args: package: application id, e.g. com.example.app. activity: fully qualified activity to start instead of the launcher entry point. clear_data: wipe the app's data first, for a true first-run test. serial: device serial when several are attached.
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_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | ||
| package | Yes | ||
| activity | No | ||
| clear_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |