---
title: "Screenshot"
description: "Render HTML or a public URL to a PNG stored as a temporary workspace file."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/puppeteer/screenshot"
---
# Screenshot

> Render HTML or a public URL to a PNG stored as a temporary workspace file.

<block-meta block="Yes" channels="Any" folder="puppeteer" group="Puppeteer" groupTo="/build/workflows/blocks/puppeteer" icon="i-lucide-camera" pipe="Value" scope="Any" tool="Yes" type="puppeteer.screenshot">



</block-meta>

**Screenshot** renders HTML or a public page to a PNG and stores it in workspace [Files](https://docs.vettero.com/data/files). The file expires after **3 hours** unless you [Persist File](https://docs.vettero.com/build/workflows/blocks/file/persist).

Choose **HTML** or **URL**. A URL must be a public `http` or `https` address. Private and loopback addresses are rejected. Render time is billed separately from the rest of the workflow run.

## Configure

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Source
      </strong>
    </td>
    
    <td>
      <strong>
        HTML
      </strong>
      
       or <strong>
        URL
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        HTML
      </strong>
    </td>
    
    <td>
      Shown for HTML — the document, or a text variable
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        URL
      </strong>
    </td>
    
    <td>
      Shown for URL — the page to open
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        File name
      </strong>
    </td>
    
    <td>
      Optional display name. Defaults to <code>
        screenshot.png
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Full page
      </strong>
    </td>
    
    <td>
      Off captures the viewport. On captures the whole scrollable page
    </td>
  </tr>
</tbody>
</table>

## Output

The next block reads the file on the data pipe (`pipe.value`): `id`, `name`, `originalName`, `extension`, `type`, `mime`, `size`, `url`, `storage`, `expiresAt`, `createdAt`. `expiresAt` is about 3 hours after the render. `mime` is `image/png`.

## When to use it

- Capture a receipt or confirmation page the next step can send.
- Snapshot a public page, then [Persist File](https://docs.vettero.com/build/workflows/blocks/file/persist) if you need to keep it.


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
