session_viewport
Set a browser session's viewport dimensions and mobile emulation to re-evaluate media queries and pointer/hover behavior, enabling responsive design testing under specific screen sizes.
Instructions
Set the session's viewport (device emulation): scripts see innerWidth/innerHeight move, media queries like (max-width: 600px) re-evaluate, element rects re-anchor, and mobile=true flips pointer/hover matchMedia answers to coarse/none. Omitted width/height keeps the current value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Viewport width in CSS pixels; omit to keep the current width | |
| height | No | Viewport height in CSS pixels; omit to keep the current height | |
| mobile | No | Mobile emulation: matchMedia answers pointer:coarse / hover:none and navigator.maxTouchPoints reports 5 (default: false) | |
| session_id | Yes | Session ID |