> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# grantPermissions

Grants specified browser permissions to the current origin or a specific origin.
Example: `grantPermissions(permissions: [CAMERA, MICROPHONE])`
Returns true if permissions were successfully granted.

## Definition

```graphql theme={null}
grantPermissions(
  permissions: [Permission]!
  options: GrantPermissionsOptions
): Boolean!
```

## Arguments

### `permissions`

[\[Permission\]!](/reference/graphql/enums/permission)

An array of permissions to grant. See the Permission enum for available values.

### `options`

[GrantPermissionsOptions](/reference/graphql/inputs/grant-permissions-options)

Options for granting permissions, such as specifying the origin.

## Returns

[Boolean!](/reference/graphql/scalars/boolean)

The `Boolean` scalar type represents `true` or `false`.
