ios_set_permission
Set privacy permissions for an app on the iOS Simulator by granting or revoking access to location, photos, camera, microphone, contacts, or calendar without handling alert dialogs.
Instructions
Set a privacy permission without going through the alert.
Simulator only. On a real phone there is no API for this: drive the Settings app, or answer the permission alert with ios_handle_alert.
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": {
"bundle_id": "<bundle_id>",
"service": "<service>"
},
"name": "ios_set_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant | No | True to grant, False to revoke. | |
| service | Yes | location, photos, camera, microphone, contacts, calendar, or all. | |
| bundle_id | Yes | App to grant or revoke for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||