返回顶部
g

google-search-wsl

Google search via Chrome browser in WSL environment. Use when user needs web search, news lookup, or information retrieval. Suitable for: (1) trending news search, (2) information lookup, (3) web research. Automatically launches Chrome in WSL and controls it via CDP protocol.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
88
下载量
1
收藏
概述
安装方式
版本历史

google-search-wsl

# Google Search (WSL Chrome) Perform Google searches through Chrome browser in WSL. ## Prerequisites - `google-chrome-stable` or `google-chrome` installed in WSL - WSLg available (or X11 forwarding configured) - OpenClaw browser tool enabled ## Quick Start ### 1. Launch Chrome Run the startup script: ```bash bash ~/.openclaw/scripts/google-search-chrome.sh ``` Or start manually: ```bash 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 ```bash 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=<returned-targetId> ``` ## Troubleshooting ### Chrome Won't Start (Missing X server) Ensure WSLg is available, or set the `DISPLAY` environment variable: ```bash export DISPLAY=:0 # Or check WSLg ls /mnt/wslg/.X11-unix/ ``` ### Port 9222 Already in Use Check and kill the occupying process: ```bash lsof -i :9222 kill <PID> ``` ### Empty Search Results - Check network connection - Try using a proxy (if `HTTP_PROXY` is configured) - Wait for the page to fully load before taking a snapshot ## Tips - Chinese keywords in search URLs will be automatically encoded - Use `snapshot` to get page content, then extract the needed information - For news search, use the `tbm=nws` parameter: `/search?q=keyword&tbm=nws`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 google-search-wsl-1776114080 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 google-search-wsl-1776114080 技能

通过命令行安装

skillhub install google-search-wsl-1776114080

下载 Zip 包

⬇ 下载 google-search-wsl v1.0.0

文件大小: 2.79 KB | 发布时间: 2026-4-14 09:40

v1.0.0 最新 2026-4-14 09:40
- Initial release of google-search-wsl skill.
- Enables Google searches using Chrome browser within the WSL environment, controlled via CDP protocol.
- Designed for trending news, general information lookup, and web research tasks.
- Detailed setup instructions provided for launching Chrome in WSL and connecting via OpenClaw browser tool.
- Troubleshooting guidance included for common issues like Chrome startup and network problems.
- Tips added for effective searches, including news mode and handling of non-English keywords.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部