set_emulation
Throttle CPU and network for a browser session to simulate slow phones or connections, so you can measure load time, hydration, layout shift, and flaky taps across all tabs.
Instructions
Throttle the session's CPU and/or network to measure a page as a slow phone or connection sees it (load time, hydration, layout shift, flaky taps). Applies to every tab of the session, open now or opened later (popups included), and lasts until changed or the session closes; it is in place when this returns, so navigate right after. Omitted fields keep their current value. Typical mid-range phone: cpuThrottlingRate 4 with network "slow4g" and useMobileUA on open_browser_session. Pass cpuThrottlingRate 1 and network "off" to stop throttling. Needs the listener role; fails if no tab confirms within 5s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | A preset ("slow3g", "slow4g", "fast4g" as in Chrome DevTools, "offline", or "off" for none) or custom {latencyMs, downloadKbps, uploadKbps}. | |
| sessionId | Yes | The id returned by open_browser_session. Errors if no open session has it. | |
| cpuThrottlingRate | No | CPU slowdown factor from 1 (none) to 100. 4 is a mid-range phone, 6 a low-end one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network throttling; null means none. | |
| initScripts | Yes | ||
| cpuThrottlingRate | Yes | CPU slowdown factor; 1 means none. |