device.preset
Emulates desktop, phone, tablet, and laptop presets by setting viewport, DPR, touch, and user agent for responsive testing.
Instructions
Emulate a device: desktop, desktop-hidpi, laptop, iphone (390), iphone-se (375, the modern SE), phone-small (320, the original SE and the width most layouts break at), pixel, tablet, ipad. Sets viewport, DPR, touch and user agent.
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": {
"preset": "<preset>"
},
"name": "device.preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | Yes | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| orientation | No |