restart_firefox
Restart Firefox with a new binary path, profile, environment variables, headless mode, or startup URL, closing all open tabs.
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 |
|---|---|---|---|
| firefoxPath | No | New Firefox binary path (optional, keeps current if not specified) | |
| profilePath | No | Firefox profile path (optional, keeps current if not specified) | |
| env | No | New environment variables in KEY=VALUE format (optional, e.g., ["MOZ_LOG=HTMLMediaElement:5", "MOZ_LOG_FILE=/tmp/ff.log"]) | |
| 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) | |
| 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. |