browser_emulate
Emulate network, CPU, viewport, mobile, user-agent, geolocation, CSS media, and HTTP-header conditions in a browser session to test how sites behave under varied constraints.
Instructions
Emulate network conditions, CPU throttling, viewport/mobile device metrics, userAgent, geolocation, CSS media features (colorScheme, reducedMotion, forcedColors, contrast), or extra HTTP headers on a session.
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": "browser_emulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contrast | No | Emulate prefers-contrast media feature. | |
| viewport | No | Device viewport override, or null to clear device metrics override. | |
| sessionId | No | Optional target browser session ID. If omitted, uses the currently active session (or auto-launches one). | |
| userAgent | No | User-Agent override string, or empty string '' to reset (Chromium). | |
| colorScheme | No | Emulate prefers-color-scheme. | |
| geolocation | No | Geolocation override, or null to clear. | |
| forcedColors | No | Emulate forced-colors media feature. | |
| reducedMotion | No | Emulate prefers-reduced-motion. | |
| extraHttpHeaders | No | Extra HTTP headers sent on requests in this session's context (pass {} to clear). | |
| cpuThrottlingRate | No | CPU slowdown factor 1..20 (1 disables throttling; requires Chromium). | |
| networkConditions | No | Network throttling preset ('none' clears throttling; requires Chromium). |