OptionaldistanceDistance of the swipe. Can be either a number (in pixels) or a predefined enum value (tiny, short, medium, long). If not provided, the swipe will be performed from the center of the screen to the screen edge
OptionaldurationDuration of the swipe
Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 500ms
OptionalincludeOptionallocationNatural language description of the location where the swipe should originate. If not provided, the swipe will be performed from the center of the screen.
OptionaloptionsAction common options
OptionaloutputOptionalpresigned⚠️ 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
Optionalscreenshot⚠️ 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 swipe. The gesture will be performed from the center of the screen towards this direction.