Grant or deny a site permission
browser_set_permissionSet a browser permission for a specific origin to granted, denied, or prompt, preventing location or notification prompts from blocking automation.
Instructions
Set one permission for an origin (BiDi permissions.setPermission). MEASURED: the permission goes in a "descriptor" object — { descriptor: { name }, state, origin } — passing the name at the top level is rejected. state is granted / denied / prompt. Useful to stop a page blocking on a location or notification request during automation.
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": {
"name": "<name>",
"state": "<state>",
"origin": "<origin>"
},
"name": "browser_set_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Permission name, e.g. "geolocation", "notifications" | |
| state | Yes | What to set it to | |
| origin | Yes | Origin to apply it to, e.g. "http://127.0.0.1:8099" |