{
  "name": "@askjo/camofox-browser",
  "version": "1.19.0",
  "description": "Headless browser automation server and OpenClaw plugin for AI agents - anti-detection, element refs, and session isolation",
  "type": "module",
  "main": "server.js",
  "license": "MIT",
  "author": "Jo Inc <oss@askjo.ai>",
  "homepage": "https://github.com/jo-inc/camofox-browser#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jo-inc/camofox-browser.git"
  },
  "bugs": {
    "url": "https://github.com/jo-inc/camofox-browser/issues"
  },
  "keywords": [
    "browser",
    "automation",
    "headless",
    "scraping",
    "camofox",
    "camoufox",
    "anti-detection",
    "ai-agent",
    "openclaw",
    "clawdbot",
    "moltbot",
    "playwright",
    "firefox",
    "youtube",
    "transcript"
  ],
  "engines": {
    "node": ">=22"
  },
  "files": [
    "server.js",
    "plugin.js",
    "openclaw.plugin.json",
    "camofox.config.json",
    "bin/camofox-browser.js",
    "lib/",
    "mcp/server.mjs",
    "mcp/package.json",
    "mcp/lib/config.mjs",
    "mcp/lib/cookies.mjs",
    "mcp/lib/tool-contracts.mjs",
    "plugins/persistence/index.js",
    "plugins/vnc/index.js",
    "plugins/vnc/plugin.json",
    "plugins/vnc/spawn.js",
    "plugins/vnc/vnc-launcher.js",
    "plugins/vnc/vnc-watcher.sh",
    "plugins/vnc/vnc-watcher-lib.sh",
    "plugins/youtube/index.js",
    "plugins/youtube/youtube.js",
    "postinstall.js"
  ],
  "openclaw": {
    "extensions": [
      "plugin.js"
    ],
    "runtimeExtensions": [
      "plugin.js"
    ],
    "compat": {
      "pluginApi": ">=2026.9.4"
    },
    "build": {
      "openclawVersion": "2026.9.4"
    },
    "tools": [
      {
        "name": "camofox_create_tab",
        "description": "Open a new browser tab at a URL"
      },
      {
        "name": "camofox_snapshot",
        "description": "Get accessibility snapshot with element refs"
      },
      {
        "name": "camofox_click",
        "description": "Click an element by ref or CSS selector"
      },
      {
        "name": "camofox_type",
        "description": "Type text into an element"
      },
      {
        "name": "camofox_upload",
        "description": "Attach files from the upload directory to an upload control"
      },
      {
        "name": "camofox_navigate",
        "description": "Navigate to URL or search macro"
      },
      {
        "name": "camofox_scroll",
        "description": "Scroll page up/down/left/right"
      },
      {
        "name": "camofox_screenshot",
        "description": "Capture page screenshot"
      },
      {
        "name": "camofox_close_tab",
        "description": "Close a browser tab"
      },
      {
        "name": "camofox_evaluate",
        "description": "Execute JavaScript in a Camoufox tab page context"
      },
      {
        "name": "camofox_list_tabs",
        "description": "List open tabs for a user"
      },
      {
        "name": "camofox_activate",
        "description": "Bring a Camoufox tab to the front (focus/activate it)"
      },
      {
        "name": "camofox_ax",
        "description": "Get the raw accessibility tree of a Camoufox page (unfiltered, no element refs)"
      },
      {
        "name": "camofox_actionables",
        "description": "List the clickable and fillable elements on a Camoufox page as candidate interaction targets, each with its ref"
      },
      {
        "name": "camofox_table_rows",
        "description": "Read one page of rows from a table on a Camoufox page"
      },
      {
        "name": "camofox_mouse_wheel",
        "description": "Send a mouse wheel scroll over a specific element (by ref) or coordinate in a Camoufox tab"
      },
      {
        "name": "camofox_drag",
        "description": "Perform a trusted press-move-release mouse drag between two coordinates in a Camoufox tab"
      },
      {
        "name": "camofox_init_script",
        "description": "Register a script that runs in the page context before every subsequent navigation in a Camoufox tab"
      },
      {
        "name": "camofox_export_storage_state",
        "description": "Export the current session cookies and storage state (Playwright storageState format) for the current user"
      },
      {
        "name": "camofox_import_local_storage",
        "description": "Seed localStorage for one or more HTTP(S) origins in the current session"
      },
      {
        "name": "camofox_back",
        "description": "Go back one entry in a Camoufox tab's history"
      },
      {
        "name": "camofox_forward",
        "description": "Go forward one entry in a Camoufox tab's history"
      },
      {
        "name": "camofox_refresh",
        "description": "Reload the current page in a Camoufox tab"
      },
      {
        "name": "camofox_press",
        "description": "Press a single keyboard key in a Camoufox tab (e.g., Enter, Escape, Tab, ArrowDown)"
      },
      {
        "name": "camofox_select",
        "description": "Choose an option in a native <select> dropdown in a Camoufox tab, by ref or CSS selector"
      },
      {
        "name": "camofox_viewport",
        "description": "Set the viewport (window) size of a Camoufox tab in pixels"
      },
      {
        "name": "camofox_wait",
        "description": "Wait for a Camoufox page to settle before continuing: up to timeout ms, optionally until the network is idle, optionally dismissing a consent dialog"
      },
      {
        "name": "camofox_extract",
        "description": "Extract structured data from a Camoufox page using a JSON Schema describing the fields to pull out"
      },
      {
        "name": "camofox_links",
        "description": "List the links on a Camoufox page, with pagination"
      },
      {
        "name": "camofox_images",
        "description": "List the images on a Camoufox page"
      },
      {
        "name": "camofox_import_cookies",
        "description": "Import Netscape cookie file (requires CAMOFOX_API_KEY)"
      }
    ]
  },
  "scripts": {
    "build": "tsc -p . || true; mkdir -p dist && cp plugin.js dist/plugin.js",
    "prepublishOnly": "npm run build",
    "start": "node server.js",
    "mcp": "node mcp/server.mjs",
    "test:mcp": "npm ci --prefix mcp && node scripts/test-mcp.mjs && node scripts/test-mcp-package.mjs",
    "test:unit": "NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit tests/unit",
    "test": "npm run test:unit && npm run test:e2e && npm run test:plugins",
    "test:e2e": "NODE_OPTIONS='--experimental-vm-modules' jest --config jest.config.e2e.cjs --runInBand --forceExit",
    "test:plugins": "NODE_OPTIONS='--experimental-vm-modules' jest --forceExit plugins/",
    "test:live": "RUN_LIVE_TESTS=1 NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit tests/live",
    "test:debug": "DEBUG_SERVER=1 NODE_OPTIONS='--experimental-vm-modules' jest --runInBand --forceExit",
    "generate-openapi": "node scripts/generate-openapi.js",
    "version:sync": "node scripts/sync-version.js",
    "version": "node scripts/sync-version.js && node scripts/generate-openapi.js && git add openclaw.plugin.json mcp/package.json mcp/package-lock.json openapi.json",
    "postinstall": "node postinstall.js",
    "fetch-bin": "node lib/camoufox-download.js"
  },
  "dependencies": {
    "better-sqlite3": "13.0.1",
    "camoufox-js": "0.11.5",
    "express": "^5.2.1",
    "playwright-core": "^1.58.0",
    "prom-client": "^15.1.3",
    "swagger-jsdoc": "^6.2.8"
  },
  "optionalDependencies": {
    "@modelcontextprotocol/sdk": "^1.32.1"
  },
  "devDependencies": {
    "@types/node": "^22.0.0",
    "jest": "^30.4.2",
    "openclaw": "2026.9.4",
    "pngjs": "^7.0.0",
    "typescript": "^5.7.0"
  },
  "overrides": {
    "babel-plugin-istanbul": {
      "test-exclude": "8.0.0"
    },
    "qs": "6.16.1",
    "fast-uri": "3.1.9",
    "ip-address": "10.7.4",
    "hono": "4.13.13",
    "@modelcontextprotocol/sdk": "$@modelcontextprotocol/sdk",
    "proxy-addr": "2.0.8",
    "body-parser": "2.4.0",
    "undici": "8.12.4",
    "zod": "4.6.7",
    "glob": "14.0.4",
    "minimatch": "11.0.5",
    "@hono/node-server": "2.1.6"
  },
  "bin": {
    "camofox-browser": "./bin/camofox-browser.js",
    "camofox-browser-mcp": "./mcp/server.mjs"
  },
  "peerDependencies": {
    "openclaw": ">=2026.9.4"
  },
  "peerDependenciesMeta": {
    "openclaw": {
      "optional": true
    }
  }
}
