Set the proxy mode
browser_set_proxyConfigure Firefox proxy preferences by mode—none, manual host/port, PAC URL, auto-detect, or system—and read back the written values to verify or restore settings.
Instructions
Set the proxy configuration (network.proxy.* preferences) and read back what was written. mode: 0 none, 1 manual (give host/hostPort), 2 PAC (give pacUrl), 4 auto-detect, 5 use system settings. Existing connections may keep using the old proxy until they are reopened. Read browser_get_proxy first so you can put the previous values back. A local HTTP proxy for testing is often written mode=1, host=127.0.0.1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Manual proxy host (mode 1), e.g. "127.0.0.1" | |
| mode | Yes | Proxy mode: 0 none, 1 manual, 2 PAC, 4 auto-detect, 5 system | |
| port | No | Manual proxy port (mode 1) | |
| pacUrl | No | PAC script URL (mode 2) | |
| noProxiesOn | No | Comma-separated "no proxy for" list |