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

# browser_screenshot

> Screenshot the viewport, the full page, or one element.

Screenshot the viewport, the full page, or one element.

## Parameters

<ParamField body="tabId" type="integer">
  Target tab id from browser\_tabs, which lists tabs across all windows. Defaults to the agent's most recently opened usable tab, or the only usable tab. Otherwise select a listed tabId.
</ParamField>

<ParamField body="fullPage" type="boolean">
   
</ParamField>

<ParamField body="ref" type="string">
  Element ref from browser\_snapshot, e.g. "e12"
</ParamField>

<ParamField body="format" type="enum">
  One of: `png`, `jpeg`.
</ParamField>

<ParamField body="quality" type="integer">
  Range: 1 to 100.
</ParamField>

## Example

```json theme={null}
{
  "tabId": 1234
}
```

```json Full page as JPEG theme={null}
{
  "tabId": 1234,
  "fullPage": true,
  "format": "jpeg",
  "quality": 70
}
```

```json One element theme={null}
{
  "tabId": 1234,
  "ref": "e42"
}
```
