restart_firefox
Restart Firefox with custom binary, environment variables, preferences, headless mode, or a specific URL. All current tabs close to apply new configuration.
Instructions
Restart Firefox with different configuration. Allows changing binary path, environment variables, and other options. All current tabs will be closed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | New environment variables in KEY=VALUE format (optional, e.g., ["MOZ_LOG=HTMLMediaElement:5", "MOZ_LOG_FILE=/tmp/ff.log"]) | |
| prefs | No | Firefox preferences to set at startup. Values are auto-typed: true/false become booleans, integers become numbers, everything else is a string. Requires MOZ_REMOTE_ALLOW_SYSTEM_ACCESS=1. | |
| headless | No | Run in headless mode (optional, keeps current if not specified) | |
| startUrl | No | URL to navigate to after restart (optional, uses about:blank if not specified) | |
| firefoxPath | No | New Firefox binary path (optional, keeps current if not specified) | |
| profilePath | No | Firefox profile path (optional, keeps current if not specified) |