network
Simulate network conditions on a Chrome tab to test app performance under various speeds, latency, or offline scenarios. Choose from presets or set custom bandwidth and latency.
Instructions
Simulate network conditions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tabId": "<tabId>",
"preset": "<preset>"
},
"name": "network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID | |
| preset | Yes | Network preset | |
| latencyMs | No | Latency in ms (preset=custom only) | |
| uploadKbps | No | Upload Kbps (preset=custom only) | |
| output_mode | No | "inline" (default): return the full payload in-band — byte-identical to v1.11.0. "handle": write payload to the handle store and return a small descriptor; redeem with oc_output_fetch. "auto": inline if payload ≤ output_inline_limit_bytes, otherwise handle. | |
| downloadKbps | No | Download Kbps (preset=custom only) | |
| output_inline_limit_bytes | No | Only honored when output_mode="auto". If the serialized payload exceeds this byte count the response spills to a handle. Default: 32768. |