← 返回 Skills 市场
jesson-hh

google-search-wsl

作者 jesson-hh · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
121
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install google-search-wsl
功能描述
Perform Google searches and retrieve web or news results via Chrome browser running in WSL using remote debugging with OpenClaw tool.
使用说明 (SKILL.md)

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 ~/.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_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
安全使用建议
This skill appears to do what it says: launch Chrome in WSL with remote debugging so the OpenClaw browser tool can control it. Before using it: (1) review and decide where the startup script should live (SKILL.md expects ~/.openclaw/scripts but the bundle contains scripts/google-search-chrome.sh); (2) be aware it opens a local Chromium remote-debugging port (default 9222) and writes a browser profile under $HOME/.openclaw/chrome-debug-profile — avoid exposing that port to untrusted networks and inspect the profile directory if you care about privacy; (3) the script accepts optional GOOGLE_SEARCH_* env vars (not declared in metadata) — set them if you need to change port, data dir, timeout, language, or GPU behavior; (4) only run this on machines you control and trust, since the browser tool will be able to load pages and access session data in that profile; and (5) if you need stronger assurance, run the script manually and inspect its output before allowing any automated agent to invoke the browser tool.
功能分析
Type: OpenClaw Skill Name: google-search-wsl Version: 1.0.0 The skill configures Google Chrome with the `--remote-allow-origins='*'` flag in `scripts/google-search-chrome.sh`, which is a security vulnerability that allows any website visited in that browser to potentially interact with the Chrome DevTools Protocol (CDP) on port 9222. While this configuration is often used to facilitate automation, it creates a significant attack surface for cross-site exploitation. The script and instructions in `SKILL.md` otherwise appear aligned with the stated purpose of enabling web searches within a WSL environment.
能力评估
Purpose & Capability
The script and SKILL.md match the description: they start a Chrome/Chromium instance in WSL with remote-debugging enabled so the OpenClaw browser tool can drive searches. The script's WSL checks, data-dir usage, and Chrome flags are appropriate for that purpose.
Instruction Scope
SKILL.md tells the agent/user to run a script at ~/.openclaw/scripts/google-search-chrome.sh, but the packaged file is scripts/google-search-chrome.sh with no install step—there's a minor mismatch about where the script should live. The instructions direct starting Chrome with remote-debugging on localhost (9222) and using the browser tool; they do not instruct reading or exfiltrating unrelated files. The guidance about using HTTP_PROXY and DISPLAY is operational (not exfiltration) but SKILL.md mentions some env vars (HTTP_PROXY) while the script actually uses GOOGLE_SEARCH_* variables that are not declared in metadata.
Install Mechanism
There is no install spec (instruction-only with a packaged script). That is low-risk from an install perspective because nothing is being downloaded or automatically written to disk by an installer; the script will only run if the user invokes it.
Credentials
No credentials or sensitive environment variables are requested. The script does create and use a user-data-dir under $HOME/.openclaw/chrome-debug-profile and reads optional env vars (GOOGLE_SEARCH_CHROME_PORT, GOOGLE_SEARCH_CHROME_DATA, GOOGLE_SEARCH_CHROME_TIMEOUT, GOOGLE_SEARCH_DISABLE_GPU, GOOGLE_SEARCH_LANG) which are not declared in the skill metadata. This is reasonable for a browser-launch helper but should be noted because it stores browser profile data locally.
Persistence & Privilege
The skill is not always-enabled and makes no platform-wide configuration changes. It writes only to a per-user data directory and spawns a local Chrome process; it does not request elevated system privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install google-search-wsl
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /google-search-wsl 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 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.
元数据
Slug google-search-wsl
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

google-search-wsl 是什么?

Perform Google searches and retrieve web or news results via Chrome browser running in WSL using remote debugging with OpenClaw tool. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 121 次。

如何安装 google-search-wsl?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-search-wsl」即可一键安装,无需额外配置。

google-search-wsl 是免费的吗?

是的,google-search-wsl 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

google-search-wsl 支持哪些平台?

google-search-wsl 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 google-search-wsl?

由 jesson-hh(@jesson-hh)开发并维护,当前版本 v1.0.0。

💬 留言讨论