Force-stop an app
force_stop_appStop all processes of an Android app package by name on a specified device using adb am force-stop. Safe to call even if the app is not running.
Instructions
Stop all processes of a package on one device (am force-stop). Idempotent; safe to call when the app is not running.
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": "force_stop_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| package | Yes | Package name to stop, e.g. "com.example.app". |