emulate_device
Override device metrics and user-agent to mimic mobile or desktop devices. Choose from presets like iPhone 15, Pixel 8, Galaxy S23.
Instructions
Emulate a device via CDP Emulation.setDeviceMetricsOverride + UA override.
Presets: iphone-15, iphone-se, pixel-8, galaxy-s23, ipad, desktop (reset).
Also sets the matching User-Agent string so UA-sniffing backends respond
with the mobile variant.
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 |
|---|---|---|---|
| preset | No | desktop |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |