permissions.grant
Grants browser permissions such as geolocation, notifications, camera, and microphone, optionally scoped to a specific origin, so web APIs can run without permission prompts.
Instructions
Grant browser permissions, e.g. ["geolocation", "notifications", "camera", "microphone"], optionally scoped to one origin. Web names are mapped to CDP types (camera -> videoCapture, microphone -> audioCapture); CDP names pass through. Granting camera/microphone lets getUserMedia resolve with no prompt, but supplies no device; the getDisplayMedia screen picker cannot be granted away at all. For both, launch with browser.launch{media}.
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": "permissions.grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | ||
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| permissions | Yes | Web permission names or CDP Browser.PermissionType names. |