launch_browser
Launch the Camoufox anti-detection browser for JavaScript reverse engineering. Configure headless, proxy, and fingerprint to bypass bot detection.
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.
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 |