# Capture DOM

**Type:** `capture_dom`

This action will capture and return the site's raw DOM, which you can then extract data from on your end.&#x20;

For common AI scenarios, you may find that this returns too much data, so we have provided a [`generate_simplified_dom`](https://gaffa.dev/docs/features/browser-requests/actions/generate-simplified-dom) , an action that distills the DOM to only the important elements.&#x20;

### Parameters

See [universal parameters](https://gaffa.dev/docs/features/browser-requests/actions/..#universal-parameters).

### Usage

Capture the raw DOM of the current page

```
"actions": [
    {
      "type": "capture_dom"
    }
]
```

### Example Output

{% file src="<https://2341007864-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyUba6osOT5MkKiV0wmgr%2Fuploads%2FalExPVVoehkCr99PDkWy%2FGaffaDOMSample.txt?alt=media&token=43103577-c2bf-4240-812a-85776d0508a7>" %}
