pilot_resize
Set the browser viewport width and height in pixels to simulate device screens and test responsive layouts.
Instructions
Set the browser viewport size in pixels to simulate different screen resolutions. Use when the user wants to test responsive layouts, simulate a mobile or tablet screen, or change the visible area of the page. For multi-viewport screenshots, use pilot_responsive instead.
Parameters:
width: Viewport width in pixels (e.g., 1280 for desktop, 375 for mobile)
height: Viewport height in pixels (e.g., 720 for desktop, 812 for mobile)
Returns: Confirmation with the new viewport dimensions.
Errors: None — any valid pixel dimensions are accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Viewport width in pixels | |
| height | Yes | Viewport height in pixels |