force_stop
Stop a running mobile app by package name to reset its state and ensure a clean baseline for UI test execution. Accepts an optional device ID to target a specific simulator.
Instructions
Force stop a running app
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | The app package name to stop | |
| device_id | No | Target device ID. If omitted, uses the default device. |