clear_app_data
Reset an Android app to its initial state by clearing cache, databases, and shared preferences for fresh testing on a specified device.
Instructions
Clear all data for an app (cache, databases, shared preferences)
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": "clear_app_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | The app package name | |
| device_id | No | Target device ID. If omitted, uses the default device. |