emulate_custom_device
Set custom viewport dimensions, device pixel ratio, and mobile mode to simulate specific devices for precise browser testing.
Instructions
Set custom device metrics (viewport size, scale, mobile mode)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"width": "<width>",
"height": "<height>"
},
"name": "emulate_custom_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Viewport width in pixels | |
| height | Yes | Viewport height in pixels | |
| mobile | No | Emulate mobile device | |
| deviceScaleFactor | No | Device pixel ratio |