Set permission
set_permissionGrant or revoke runtime permissions for an app on a device, covering camera, microphone, location, contacts, and more. Control access to test app behavior under different permission states.
Instructions
Grant or revoke a runtime permission for an app. Aliases: camera, microphone, location, contacts, photos, notifications, calendar, etc.
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": {
"device_id": "<device_id>",
"app_id": "<app_id>",
"permission": "<permission>"
},
"name": "set_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant | No | ||
| app_id | Yes | ||
| device_id | Yes | Device id from list_devices (adb serial like 'emulator-5554', or an iOS simulator UDID) | |
| permission | Yes |