emulate
Override viewport, user agent, geolocation, color scheme, network conditions, and CPU throttling on a Chrome page to test site behavior across different environments.
Instructions
Emulates various features on the page. Settings last until the debugger detaches.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Targets a specific page by ID. Defaults to the selected page. | |
| viewport | No | <width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape] | |
| userAgent | No | Empty string clears the override. | |
| colorScheme | No | ||
| geolocation | No | latitude,longitude | |
| extraHttpHeaders | No | JSON object string. Empty string clears. | |
| cpuThrottlingRate | No | ||
| networkConditions | No |