/install google-search-wsl
Google Search (WSL Chrome)
Perform Google searches through Chrome browser in WSL.
Prerequisites
google-chrome-stableorgoogle-chromeinstalled in WSL- WSLg available (or X11 forwarding configured)
- OpenClaw browser tool enabled
Quick Start
1. Launch Chrome
Run 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 &
2. Verify Chrome is Running
curl -s http://127.0.0.1:9222/json/version
Should return Chrome version information.
3. Search Using Browser Tool
browser action=open url="https://www.google.com/search?q=your+search+term" profile=user
browser action=snapshot targetId=\x3Creturned-targetId>
Troubleshooting
Chrome Won't Start (Missing X server)
Ensure WSLg is available, or set the DISPLAY environment variable:
export DISPLAY=:0
# Or check WSLg
ls /mnt/wslg/.X11-unix/
Port 9222 Already in Use
Check and kill the occupying process:
lsof -i :9222
kill \x3CPID>
Empty Search Results
- Check network connection
- Try using a proxy (if
HTTP_PROXYis configured) - Wait for the page to fully load before taking a snapshot
Tips
- Chinese keywords in search URLs will be automatically encoded
- Use
snapshotto get page content, then extract the needed information - For news search, use the
tbm=nwsparameter:/search?q=keyword&tbm=nws
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install google-search-wsl - After installation, invoke the skill by name or use
/google-search-wsl - Provide required inputs per the skill's parameter spec and get structured output
What is google-search-wsl?
Perform Google searches and retrieve web or news results via Chrome browser running in WSL using remote debugging with OpenClaw tool. It is an AI Agent Skill for Claude Code / OpenClaw, with 121 downloads so far.
How do I install google-search-wsl?
Run "/install google-search-wsl" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is google-search-wsl free?
Yes, google-search-wsl is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does google-search-wsl support?
google-search-wsl is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created google-search-wsl?
It is built and maintained by jesson-hh (@jesson-hh); the current version is v1.0.0.