Force-stop app
app_stopForce-stops an Android app on a connected device, with an option to wipe its data for a clean restart or test reset.
Instructions
Force-stop an app, optionally also clearing all of its data.
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_stop"
}
}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 | |
| clearData | No | pm clear: wipes the app's data |