app_action
Change an Android app's state by force-stopping, clearing data, uninstalling, granting or revoking permissions, or closing its window while it keeps running.
Instructions
Changes an app's state: force_stop, clear_data (also stops it), uninstall, uninstall_keep_data, grant or revoke a runtime permission, or close_window (closes its own window or hidden display; the app keeps running).
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>",
"action": "<action>"
},
"name": "app_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| package | Yes | ||
| permission | No | For grant and revoke, such as android.permission.CAMERA. |