veil_set_viewport
Set the browser viewport size and device pixel ratio to emulate mobile or desktop screens, ensuring consistent screenshot dimensions.
Instructions
Set the viewport size (and optional deviceScaleFactor / mobile emulation) — the page sees this as window.innerWidth/Height, screen size, and devicePixelRatio. Emulate a phone or force a fixed desktop size for reproducible screenshots.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| mobile | No | mobile emulation (default false) | |
| deviceScaleFactor | No | device pixel ratio (default 1) |