LogoLogo
CtrlK
HomeDashboardAPI PlaygroundLlms.txt
  • Documentation
  • Changelog
  • Introduction
  • Get Started
  • Credits and Pricing
  • Features
    • Browser Requests
      • Actions
        • Block DOM Removals
        • Capture Cookies
        • Capture DOM
        • Capture Screenshot
        • Capture Element
        • Capture Snapshot
        • Click
        • Download File
        • Generate Markdown
        • Generate Simplified DOM
        • Print
        • Parse JSON
        • Parse Table
        • Scroll
        • Type
        • Wait
      • API Playground Examples
        • Export Web Page to PDF
        • Convert Web Page to Markdown
        • Infinitely Scroll an Ecommerce Site
        • Capture a Full Height Screenshot
        • Automated Form Filling
  • API Reference
    • API Authentication
    • POST v1/browser/requests
    • GET v1/browser/requests/{id}
    • GET v1/browser/requests
    • Beta Endpoints
      • POST v1/schemas
      • PUT v1/schemas
      • DELETE v1/schemas/{id}
      • GET v1/schemas
  • Tutorials
    • Convert any webpage into LLM-ready Markdown using Gaffa
  • Capture a Full-Height Screenshot of a Webpage
  • AI Tools
    • Llms.txt
Powered by GitBook
On this page
  • Parameters
  • Usage
  • Example Output
Edit on GitHub
Export as PDF
  1. Features
  2. Browser Requests
  3. Actions

Capture DOM

Type: capture_dom

This action will capture and return the raw dom of the site which you can then extract data from on your end.

For common AI scenarios you may find this returns too much data so we have provided a generate_simplified_dom action which distills the DOM to only the important elements.

Parameters

See universal parameters.

Usage

Capture the raw DOM of the current page

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

Example Output

13KB
GaffaDOMSample.txt
PreviousCapture CookiesNextCapture Screenshot

Last updated 8 months ago