Install
openclaw skills install @jesson-hh/google-search-wslPerform Google searches and retrieve web or news results via Chrome browser running in WSL using remote debugging with OpenClaw tool.
openclaw skills install @jesson-hh/google-search-wslPerform Google searches through Chrome browser in WSL.
google-chrome-stable or google-chrome installed in WSLRun the startup script:
bash ~/.openclaw/scripts/google-search-chrome.sh
Or start manually:
export DISPLAY=:0
google-chrome-stable --remote-debugging-port=9222 \
--remote-allow-origins='*' \
--user-data-dir="$HOME/.openclaw/chrome-debug-profile" \
--lang=zh-CN \
--disable-gpu \
--disable-dev-shm-usage &
curl -s http://127.0.0.1:9222/json/version
Should return Chrome version information.
browser action=open url="https://www.google.com/search?q=your+search+term" profile=user
browser action=snapshot targetId=<returned-targetId>
Ensure WSLg is available, or set the DISPLAY environment variable:
export DISPLAY=:0
# Or check WSLg
ls /mnt/wslg/.X11-unix/
Check and kill the occupying process:
lsof -i :9222
kill <PID>
HTTP_PROXY is configured)snapshot to get page content, then extract the needed informationtbm=nws parameter: /search?q=keyword&tbm=nws