network
Simulate network conditions for a browser tab. Choose presets like offline, slow-2g, 3g, or set custom download/upload speed and latency.
Instructions
Simulate network conditions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID | |
| preset | Yes | Network preset | |
| downloadKbps | No | Download Kbps (preset=custom only) | |
| uploadKbps | No | Upload Kbps (preset=custom only) | |
| latencyMs | No | Latency in ms (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. | |
| 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. |