set_permissions
Grant or revoke Android runtime permissions by shorthand or full name so app flows can start from a clean install without manual system-dialog taps.
Instructions
Grant or revoke Android runtime permissions, so a flow can start from a clean install without a human tapping the system dialog. Accepts shorthands (camera, location, background_location, storage, media, notifications, microphone, contacts, phone, bluetooth) or full names like android.permission.CAMERA. Android only.
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": {
"permissions": "<permissions>"
},
"name": "set_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant | No | True to grant, false to revoke. Default: true | |
| 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. | |
| permissions | Yes | Permissions to change, e.g. ["camera", "location"] or ["android.permission.CAMERA"] |