Clear app data
clear_app_dataResets an Android app to a fresh-install state by clearing all its data. Use it to test clean app behavior or fix issues caused by existing data.
Instructions
Clear all data of an app (pm clear) — resets it to a fresh-install state.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clear_app_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | Application id (defaults to session) | |
| serial | No | Device serial (defaults to session or the only device) |