emulate_network
Throttle a session's network to slow_3g, fast_3g, offline, or reset. Use to test loading spinners, skeleton states, offline fallbacks, and timeout handling.
Instructions
Throttle a session's network to a preset — slow_3g, fast_3g, offline, or reset. Returns {success}. Persists across navigations until reset. Use to test loading spinners, skeleton states, offline fallbacks, and timeout handling.
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": {
"session_id": "<session_id>",
"preset": "<preset>"
},
"name": "emulate_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | Yes | Network preset: slow_3g (500kbps/400ms), fast_3g (1.5Mbps/150ms), offline (no network), reset (back to normal) | |
| session_id | Yes | Session ID |