Skip to content

Browser Settings Reference

Back to Configuration overview.

PropertyTypeDefaultDescription
viewportobject-Browser viewport dimensions
viewport.widthnumber1280Browser viewport width in pixels
viewport.heightnumber800Browser viewport height in pixels
colorScheme"light" | "dark"-Color scheme for capture. Omit to capture both light and dark variants
deviceScaleFactornumber-Device pixel ratio (1 = standard, 2 = retina, 3 = ultra-high DPI)
bypassCSPboolean-Bypass Content-Security-Policy restrictions. Enabled by default for reliable page.evaluate() calls
reducedMotion"reduce" | "no-preference"-Emulate prefers-reduced-motion media feature. Use "reduce" to disable animations
userAgentstring-Custom user agent string for the browser

Example

json
{
  "viewport": {},
  "colorScheme": "light",
  "deviceScaleFactor": 2,
  "bypassCSP": true,
  "reducedMotion": "reduce",
  "userAgent": "value"
}