browser_emulate_device
Simulate complete device characteristics for testing, including User-Agent, viewport, touch events, and pixel density, with presets or custom configurations.
Instructions
模拟指定设备(iPhone/Android/平板)的完整特性,包括 User-Agent、视口尺寸、触摸事件、像素密度等。支持预设设备列表和自定义设备配置。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| touch | No | 是否启用触摸模拟 | |
| device | No | 设备名称或别名。可用预设:iPhone 14/15/16 系列、Android Pixel/Samsung Galaxy、Tablet iPad/Android、Desktop。 | |
| locale | No | 本地化设置 | zh-CN |
| timezone | No | 时区设置 | Asia/Shanghai |
| viewport | No | 自定义视口(覆盖设备预设) | |
| userAgent | No | 自定义 User-Agent(覆盖设备预设) | |
| colorScheme | No | 颜色方案偏好 | light |
| geolocation | No | 地理位置模拟 | |
| orientation | No | 屏幕方向 | portrait |
| permissions | No | 要授权的权限,如 ['geolocation', 'notifications'] |