launch_browser
Launches the Camoufox anti-detection browser or attaches to an existing session, configuring fingerprint, proxy, headless mode, and other evasion settings for automated web interactions.
Instructions
Launch the Camoufox anti-detection browser, or attach to a running one.
Args:
headless: Run in headless mode (default False).
os_type: OS fingerprint - "auto", "windows", "macos", or "linux".
locale: Browser locale (e.g. "zh-CN"). "auto" detects system locale.
proxy: Proxy server URL (e.g. "http://127.0.0.1:7890").
humanize: Enable humanized mouse movement.
geoip: Auto-infer geolocation from proxy IP.
block_images: Block image loading.
block_webrtc: Block WebRTC to prevent IP leaks.
enable_trace: Enable engine-level property access tracing.
Requires camoufox-reverse custom browser build.
When enabled, use trace_property_access() to capture DOM access.
trace_objects: Optional exact native object-name allowlist (for example
["navigator", "screen", "webgl"]). Empty traces all native sites
declared by the selected reverse build.
trace_max_events: Per Firefox process/session event cap (1..200000).
browser_version: Select one already-installed Camoufox 0.5+ browser
without changing its persistent active version. Use a repo-qualified
selector such as "official/beta.30" or
"whitenightshadow/152.0.4-beta.30-reverse.5". Omit it to preserve the
active/default behavior, including Camoufox 0.4.x installations.
The selected browser must match the active browser's exact
version/build because Camoufox reads shared resources from active.
ws_endpoint: Attach to an already-running Camoufox server instead of
launching a new browser. Start the server with
python -m camoufox server, copy its "Websocket endpoint:
ws://127.0.0.1:/" line, and pass that full URL here.
When set, all other launch args (os_type/locale/proxy/...) are
ignored — fingerprint config is owned by the running server. Start the
server with an os fingerprint matching the host for font-metric parity
(attach mode cannot inject the host/os font-fallback shim that launch
mode does). close_browser() will only disconnect; the server keeps running.
Returns: dict with status, config, and page list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geoip | No | ||
| proxy | No | ||
| locale | No | auto | |
| os_type | No | auto | |
| headless | No | ||
| humanize | No | ||
| ws_endpoint | No | ||
| block_images | No | ||
| block_webrtc | No | ||
| enable_trace | No | ||
| trace_objects | No | ||
| browser_version | No | ||
| trace_max_events | No |