{"skill":{"slug":"playwright-headless-browser","displayName":"Playwright Headless Browser (Chromium)","summary":"Set up headless browser automation in Clawdbot using Playwright Chromium. Use when configuring browser tools for WSL/Linux environments, installing browser d...","description":"---\nname: playwright-browser\ndescription: Set up headless browser automation in Clawdbot using Playwright Chromium. Use when configuring browser tools for WSL/Linux environments, installing browser dependencies, or enabling headless web automation. Handles Chromium installation, system library dependencies, and Clawdbot browser configuration.\n---\n\n# Playwright Browser Setup\n\nConfigure Clawdbot's browser tool to use Playwright-managed Chromium for headless automation in WSL/Linux environments.\n\n## Quick Setup\n\nRun the setup script to install everything:\n\n```bash\n./scripts/setup.sh\n```\n\nThis will:\n1. Install Playwright and Chromium\n2. Install required system libraries (requires sudo)\n3. Patch Clawdbot config to use the Playwright browser\n\n## Manual Setup\n\n### 1. Install Playwright Chromium\n\n```bash\nnpx playwright install chromium\n```\n\n### 2. Install System Dependencies\n\nChromium requires NSS and ALSA libraries:\n\n```bash\n# Ubuntu/Debian\nsudo apt-get install -y libnss3 libasound2t64\n\n# If libasound2t64 doesn't exist (older Ubuntu):\nsudo apt-get install -y libnss3 libasound2\n```\n\n### 3. Find Chromium Path\n\n```bash\nfind ~/.cache/ms-playwright -name \"chrome\" -path \"*/chrome-linux64/*\" 2>/dev/null | head -1\n```\n\n### 4. Configure Clawdbot\n\nPatch the gateway config:\n\n```bash\nclawdbot config patch '{\"browser\": {\"executablePath\": \"<path-from-step-3>\", \"headless\": true, \"noSandbox\": true}}'\n```\n\nOr use the provided script:\n\n```bash\n./scripts/configure-clawdbot.sh\n```\n\n## Verification\n\nTest the browser works:\n\n```bash\n~/.cache/ms-playwright/chromium-*/chrome-linux64/chrome --headless --no-sandbox --disable-gpu --dump-dom https://example.com\n```\n\n## Notes\n\n- `noSandbox: true` is required for WSL/container environments\n- `headless: true` runs without a visible window (faster, no display needed)\n- For visible browser, set `headless: false` and ensure WSLg or X11 is configured\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":2736,"installsAllTime":103,"installsCurrent":8,"stars":1,"versions":1},"createdAt":1771165997152,"updatedAt":1778990728114},"latestVersion":{"version":"1.0.0","createdAt":1771165997152,"changelog":"Initial version for Clawdbot Playwright headless browser setup.\n\n- Adds setup, dependency installation, and configuration scripts for Clawdbot integration with Playwright Chromium.\n- Removes previous skill documentation files related to testing, debugging, selectors, scraping, and CI/CD.\n- Provides clear instructions for automated and manual setup on WSL/Linux, including system dependencies and headless configuration.\n- Emphasizes use of headless mode and required flags for containerized or WSL environments.","license":null},"metadata":null,"owner":{"handle":"maverick-software","userId":"s172zy52hz8d9fxcmyr9padghd842s7c","displayName":"maverick-software","image":"https://avatars.githubusercontent.com/u/85259593?v=4"},"moderation":null}