safari_emulate
Emulate mobile devices in Safari by resizing the viewport and overriding user agent, platform, and touch points. Supports preset devices or custom dimensions.
Instructions
Emulate a mobile device: sizes the Safari window to the device's CSS viewport and overrides navigator.userAgent/platform/maxTouchPoints (iOS/iPadOS 27 values) in the current page — JavaScript only: the HTTP User-Agent header is unchanged and a reload or navigation clears it. Devices: iphone-18-pro, iphone-18-pro-max, iphone-air, iphone-17, iphone-17e, iphone-16, iphone-14, iphone-14-pro-max, ipad, ipad-air-11, ipad-air-13, ipad-pro-11, ipad-pro-13, ipad-pro, pixel-7, galaxy-s24. Or pass width/height (and userAgent).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "safari_emulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Custom viewport width | |
| device | No | Device name from the list in the description, e.g. iphone-18-pro, iphone-air, ipad-pro-11 | |
| height | No | Custom viewport height | |
| userAgent | No | Custom user agent string |