set_viewport
Resize the browser viewport to test responsive layouts with device presets or custom dimensions, then capture a screenshot for verification.
Instructions
Change the viewport size of a session page to test at different screen sizes. Use device presets or custom width/height. Takes a screenshot after resizing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Viewport width in pixels (custom size) | |
| device | No | Device preset: mobile_sm (320x568 iPhone SE), mobile (375x812 iPhone 12), mobile_lg (428x926 iPhone 14 Pro Max), tablet (768x1024 iPad), tablet_lg (1024x1366 iPad Pro), laptop (1366x768), desktop (1920x1080), desktop_lg (2560x1440) | |
| height | No | Viewport height in pixels (custom size) | |
| session_id | Yes | Session ID |