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.
| Parameter | Type | Description |
|---|---|---|
site_name | string | The site, as List Sites reports its site_name |
version | "draft", "live" or null | Which version. Default draft, the newest version |
page | string or null | A page of the site, such as about.html. Default index.html |
viewports | array or null | Any of desktop (1440 × 900) and phone (390 × 844). Default both |
full_page | boolean or null | true captures the whole scrolling page instead of the first screen. Default false |
selector | string or null | A CSS selector, such as #pricing, to capture only that element. At most 200 characters |
at_ms | number or null | Freezes 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
| Field | Description |
|---|---|
success | true |
site_name | The site |
version | The version number captured |
which | draft or live |
page | The page captured |
screenshots | One 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_namein the organization. - A
pagethe 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