chrome_emulate_device
Sets viewport width, height, device pixel ratio, and mobile mode for a Chrome tab to test responsive layouts and device emulation.
Instructions
Set device viewport, scale, and 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": "chrome_emulate_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | ||
| width | Yes | Viewport width | |
| height | Yes | Viewport height | |
| mobile | No | Enable mobile mode | |
| deviceScaleFactor | No | Device pixel ratio (default: 1) |