Skill: Preview Site

Take screenshots of one of your organization's sites, its newest draft or its live version, at desktop and phone sizes, for the Web Builder to check what it built.

Preview Site takes screenshots of a site your organization owns and hands them to the Web Builder, so it can look at what it built before telling you it’s done. It comes with the Web Builder.

The screenshots are for the agent. They aren’t shown to you in the chat. The skill changes nothing on the site; to see a draft yourself, use Preview draft on the site’s page in Sites.

Parameters

The Web Builder sends every parameter; null takes the default.

ParameterTypeDescription
site_namestringThe site, as List Sites reports its site_name
version"draft", "live" or nullWhich version. Default draft, the newest version
pagestring or nullA page of the site, such as about.html. Default index.html
viewportsarray or nullAny of desktop (1440 × 900) and phone (390 × 844). Default both
full_pageboolean or nulltrue captures the whole scrolling page instead of the first screen. Default false
selectorstring or nullA CSS selector, such as #pricing, to capture only that element. At most 200 characters
at_msnumber or nullFreezes every animation this many milliseconds in before capturing, up to 120,000. Default: capture as the page loads

Each image takes a few seconds to render.

Response

FieldDescription
successtrue
site_nameThe site
versionThe version number captured
whichdraft or live
pageThe page captured
screenshotsOne entry per image, with its label, viewport, width and height

The images themselves are stored privately for your organization and shown to the agent on its next turn.

When it refuses

  • No site with that site_name in the organization.
  • A page the site doesn’t have. The error lists its pages.
  • version: "live" on a site that has never been published.

Related skills: Edit Site | Update Site