adb_restart_app
Force-stops and relaunches an Android app by package name, combining the common debugging restart workflow into a single ADB call.
Instructions
Force-stop then re-launch an app. The most frequent debugging workflow in a single call.
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": {
"packageName": "<packageName>"
},
"name": "adb_restart_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| delayMs | No | Delay between stop and start in ms (0-10000, default 500) | |
| packageName | Yes | Package name (e.g., 'com.example.app') |