Set App Permission
app_permissionGrant or revoke runtime permissions for Android apps by package name and permission, optionally targeting a specific device serial.
Instructions
Grant or revoke a runtime permission for an app
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": {
"packageName": "<packageName>",
"permission": "<permission>",
"action": "<action>"
},
"name": "app_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Whether to grant or revoke the permission | |
| deviceId | No | Target device serial | |
| permission | Yes | Full permission name, e.g. 'android.permission.CAMERA' | |
| packageName | Yes | Application package name |