resize
Set a tab's viewport to a specific size in CSS pixels to test responsive layouts on phone, tablet, or desktop. Emulates the size within the page without resizing the browser window.
Instructions
Set the tab's viewport to a given size in CSS pixels, to test responsive layouts (e.g. 390x844 phone, 768x1024 tablet, 1440x900 desktop). It emulates the size inside the page and does not move or resize the browser window. Applies to this tab until the browser is closed or you resize again; reload may be needed for layouts that read the size on load. Returns the size set; width and height must be positive. Screenshots afterwards use the new size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id from tabs_list. Defaults to the current tab. | |
| width | Yes | Viewport width in CSS px, e.g. 390. | |
| height | Yes | Viewport height in CSS px, e.g. 844. |