safari_emulate
Emulate mobile devices in Safari by resizing windows and setting user agents. Supports iPhone, iPad, Pixel, Galaxy models or custom viewport dimensions for testing responsive designs.
Instructions
Emulate a mobile device by resizing window and setting user agent. Devices: iphone-14, iphone-14-pro-max, ipad, ipad-pro, pixel-7, galaxy-s24. Or use custom width/height.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device name: iphone-14, ipad, pixel-7, galaxy-s24, etc. | |
| width | No | Custom viewport width | |
| height | No | Custom viewport height | |
| userAgent | No | Custom user agent string | |
| scale | No | Initial scale (default: 1) |