Uninstall a package
uninstall_packageDeletes an Android app via adb uninstall. Use keep_data to retain its data directory; specify device if multiple are connected.
Instructions
Remove an application from one device via adb uninstall. Destructive: the app is deleted from the device (use keep_data to keep its data directory).
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": "uninstall_package"
}
}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 uninstall, e.g. "com.example.app". | |
| keep_data | No | Pass -k to keep the app data and cache directories (default false). | |
| timeout_ms | No | Uninstall timeout in milliseconds (default 60000). |