emulate_device
Adjust viewport, pixel ratio, and touch to emulate mobile devices in Chrome for accurate responsive testing.
Instructions
Emulate a mobile device using Chrome DevTools Protocol. Adjusts viewport, pixel ratio, and touch.
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_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Custom width (overrides device preset) | |
| device | No | Preset device name | |
| height | No | Custom height | |
| mobile | No | Mobile flag | |
| pixel_ratio | No |