Skip to content

Screenshot Definition Reference

Back to Configuration overview.

PropertyTypeDefaultDescription
idstringautoUnique identifier (auto-generated if omitted)
namestring-Display name, also used to derive the output filename
urlstring-Full URL of the page to capture
selectorstring-CSS selector for element capture (omit for full-page)
paddingobject-Expand capture area beyond element bounds
padding.topnumber0Top padding in pixels
padding.rightnumber0Right padding in pixels
padding.bottomnumber0Bottom padding in pixels
padding.leftnumber0Left padding in pixels
scrollobject-Scroll position to restore before capturing
scroll.xnumber0Horizontal scroll offset in pixels
scroll.ynumber0Vertical scroll offset in pixels
paddingFill"inherit" | "solid" | "transparent"-Background fill for padding area: "inherit" (default) shows page content, "solid" fills with detected background color
elementFill"original" | "solid" | "transparent"-Background fill for element area: "original" (default) keeps actual background, "solid" replaces with detected color
viewportsstring[]-Viewport variants to generate — preset names ("desktop", "tablet", "mobile") or custom "WIDTHxHEIGHT"
textOverridesRecord-Replace text content before capture. Keys are CSS selectors, values are replacement text
actionsany[]-Ordered list of actions to execute before capturing the screenshot. Actions run sequentially — each completes before the next starts.

Example

json
{
  "id": "abc12345",
  "name": "My Screenshot",
  "url": "/dashboard",
  "selector": ".my-element",
  "padding": {},
  "scroll": {},
  "paddingFill": "inherit",
  "elementFill": "original",
  "viewports": [],
  "textOverrides": {},
  "actions": []
}