Optional
distanceDistance of the scroll. Can be either a number (in pixels) or a predefined enum value (tiny, short, medium, long). If not provided, the scroll will be performed from the center of the screen to the screen edge
Optional
durationDuration of the scroll
Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 500ms
Optional
includeOptional
optionsAction common options
Optional
outputOptional
presigned⚠️ DEPRECATED: Use options.screenshot.presignedExpiresIn
instead.
Presigned url expires in. Only takes effect when outputFormat is storageKey.
This field will be ignored when options.screenshot
is provided.
Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 30m
Optional
screenshot⚠️ DEPRECATED: Use options.screenshot.delay
instead. This field
will be ignored when options.screenshot
is provided.
Delay after performing the action, before taking the final screenshot.
Execution flow:
Example: '500ms' means wait 500ms after the action before capturing the final screenshot.
Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 500ms Maximum allowed: 30s
Direction to scroll. The scroll will be performed from the center of the screen towards this direction. 'up' scrolls content upward (reveals content below), 'down' scrolls content downward (reveals content above), 'left' scrolls content leftward (reveals content on the right), 'right' scrolls content rightward (reveals content on the left).