clear_app_data
Clears an app's data on Android or iOS: use cache mode to remove temporary files while keeping logins and databases, or all mode to reset the app to a fresh install state.
Instructions
Clear app data. Mode "cache" clears only temporary files (preserves storage, databases, login). Mode "all" returns app to 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 |
|---|---|---|---|
| mode | No | What to clear. "cache": only temporary files and cache (preserves storage, databases, login). "all": everything — app returns to fresh install state. Default: cache | cache |
| observe | No | Capture screenshot after action. Default: none | |
| package | No | App package name (Android, e.g. com.example.app) or bundle ID (iOS). Optional — defaults to the app currently in the foreground. | |
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. | |
| observe_delay_ms | No | Ms to wait before observing. Default: 500 |