set_network
Throttle or break one app's network by creating and enabling a targeted rule, with presets or exact bandwidth, latency, loss, and failure-mode settings.
Instructions
Slow down or break one app's network, and only that app's. Creates the rule if needed and turns it on. Combine a preset with exact values or a failure mode.
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": {
"app": "<app>"
},
"name": "set_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| up | No | Upload bandwidth in kilobits per second. | |
| app | Yes | The app: a bundle ID like com.me.MyApp, an app name, or * for every app in a simulator. | |
| down | No | Download bandwidth in kilobits per second. | |
| loss | No | Packet loss percent, 0 to 100. | |
| after | No | For drop: seconds before a connection is cut. | |
| hosts | No | Comma-separated hosts to limit the rule to, like api.me.com,*.cdn.me.com. | |
| jitter | No | Latency variation in milliseconds. | |
| online | No | For outages: seconds online. | |
| preset | No | No Throttling, Edge, 3G, DSL, LTE, WiFi, Very Bad Network, 100% Loss, or a saved preset. | |
| failure | No | airplane: every connection fails at once. refuse: refuse a percent of new connections. timeout: connections never answer. drop: cut connections after some seconds. outages: go offline and back repeatedly. | |
| latency | No | Added latency in milliseconds. | |
| offline | No | For outages: seconds offline. | |
| percent | No | For refuse: the percent of connections refused. | |
| simulator | No | For iOS Simulator apps: booted, any, a device name or a UDID. Leave out for a Mac app. | |
| hosts_mode | No | only (default): just those hosts; except: everything but them. |