# Capture page screenshot

Node type `browser_screenshotPage`

## What it does

Capture an image of the browser page during a run.

## Desktop client configuration

![Capture page screenshot configuration in the desktop client](/assets/screenshot-page.320efcff60dc868b0a1879466ec2f49ceccd3b19c0f95d93a0a3b4a210aff2b1.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

These fields belong in `data.browserUi.inputs`.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `name` | `string` | No | — | Screenshot name |
| `format` | `"png"` / `"jpg"` (supports variable references) | No | `"png"` | Image format. Editor initial value `"png"` |
| `quality` | `integer` | No | `80` | Image quality; integer; minimum after resolution: 1; maximum after resolution: 100; literal only (no reference or expression) `minimum = 1`, `maximum = 100`. Editor initial value `80` |
| `fullPage` | `boolean` (supports variable references) | No | `true` | Capture full page. Editor initial value `true` |
| `type` | `"default"` / `"folder"` (supports variable references) | No | `"default"` | Save location. Editor initial value `"default"` |
| `defaultDirectory` | `string` | No | — | Default directory (the editor shows the desktop client's local default screenshot directory; it is not written to the template, and the executor does not read it) |
| `url` | `string` | No | — | Save directory |


## Mode requirements and limits

- When type=folder, url is an authorized absolute directory. The default path is managed by the executor, and defaultDirectory is only for display in the editor (the editor shows the desktop client's local default screenshot directory; it is not written to the template). quality applies only to jpg and can only be an integer in 1–100. It cannot reference a variable or use an arithmetic expression.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `name` | `literal`, `template` |
| `format` | `literal`, `template` |
| `quality` | `literal` |
| `fullPage` | `literal`, `template` |
| `type` | `literal`, `template` |
| `defaultDirectory` | `literal`, `template` |
| `url` | `literal`, `template` |


## Outputs

| Output field | Type or values |
|  --- | --- |
| `path` | `string` |
| `name` | `string` |
| `width` | `number` |
| `height` | `number` |
| `mimeType` | `string` |
| `sizeBytes` | `number` |


Reference published fields as `${nodeId.data.field}`.

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`.

```json
{
  "id": "capture_checkout",
  "type": "browser_screenshotPage",
  "data": {
    "title": "Capture the checkout page",
    "browserAction": "screenshotPage",
    "browserUi": {
      "inputs": {
        "name": "checkout",
        "format": "png",
        "fullPage": true,
        "type": "default"
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

[Back to the node catalog](/browser-rpa/nodes)