set_site_permission
Set a temporary browser permission for a specific origin, such as notifications or geolocation, and automatically restore the prior setting after a chosen duration.
Instructions
Temporarily set an origin-scoped browser site permission for 60-600 seconds. Only http/https origins and notifications, geolocation/location, camera or microphone are supported; clipboard returns unsupported because its prior state cannot be restored. safe asks on every allow; lab skips prompts by default and restores session approval only when BROWSERTAP_LAB_NO_ELICIT is explicitly disabled. Leases attempt to restore their prior setting. requires_user_action.reason distinguishes elicitation_unsupported, declined, timeout, cancelled and error; an unsuccessful approval never sends a permission grant. If restoration becomes unsupported, manual_recovery retains that setting and recovery guidance without automatic retries; an explicit reset can retry after the cause is resolved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | ||
| setting | Yes | ||
| permission | Yes | ||
| session_id | No | ||
| duration_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||