emulate_network
Throttle network speed to simulate offline, 3G, 4G, or custom conditions for testing page performance.
Instructions
Throttle network via CDP Network.emulateNetworkConditions.
Presets match Chrome DevTools device mode (offline/slow-3g/3g/slow-4g/4g/wifi).
Pass preset="no-throttle" to reset. Override individual knobs with
latency_ms / download_bps / upload_bps.
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_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | 4g | |
| latency_ms | No | ||
| download_bps | No | ||
| upload_bps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |