emulate_network
Set a page offline or simulate slow network conditions with added latency and upload/download throughput limits; use clear to restore normal networking.
Instructions
Set the page offline, or slow it with latency and throughput in bytes per second. clear:true restores a normal network. Does not change viewport, user agent, geolocation, or media; use emulate for those.
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 |
|---|---|---|---|
| clear | No | ||
| offline | No | true makes navigator.onLine false and fails fetches | |
| targetId | No | ||
| latencyMs | No | Added round-trip latency in milliseconds | |
| processId | No | Process ID. If omitted, uses the single running app. | |
| uploadThroughput | No | Max upload bytes/sec. -1 means unlimited | |
| downloadThroughput | No | Max download bytes/sec. -1 means unlimited |