emulate
Simulate mobile devices or custom viewports with user agent, dimensions, touch, and DPR settings to test responsive browser layouts.
Instructions
Emulate a mobile device or custom viewport (user agent, dimensions, touch, DPR)
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": "emulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab ID (optional) | |
| width | No | Custom viewport width | |
| device | No | Preset: iphone-14, ipad, pixel-7, galaxy-s23 (optional) | |
| height | No | Custom viewport height | |
| mobile | No | Enable mobile mode | |
| userAgent | No | Custom user agent string | |
| deviceScaleFactor | No | Device pixel ratio (default 1) |