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

# Screenshot

> Capture screenshots of the page or elements

The **Screenshot** node captures a screenshot of the current page or a specific element. This is useful for documentation, debugging, or visual verification.

## Parameters

| Parameter           | Type   | Required | Description                                                                                              |
| ------------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------- |
| `metadata`          | object | No       | Metadata to attach to the screenshot for identification in results                                       |
| `wait_time`         | number | No       | Maximum time (ms) to wait for the element. Default: 15000                                                |
| `margin`            | number | No       | Viewport fraction from `0` to `1` used to deduplicate overlap during full-page scrolling. Default: `0.1` |
| `max_scrolls`       | number | No       | Maximum number of scrolls for full-page capture                                                          |
| `wait_after_scroll` | number | No       | Time to wait after each scroll (ms)                                                                      |

## Examples

Capture a screenshot with metadata for identification in results:

```json theme={null}
{
  "id": "abc123",
  "name": "Screenshot dashboard",
  "action": "SCREENSHOT",
  "parameters": {
    "metadata": {
      "id": "123",
      "screen": "dashboard"
    }
  }
}
```

## Notes

* Screenshots are stored and can be accessed in the run results
* Use `margin` to remove a fraction of the viewport during stitched full-page screenshots. For example, `0.1` removes 10% overlap and can help avoid duplicate sticky headers.
