Google web search via Gemini Search Grounding (primary) and Custom Search JSON API (fallback). Use for: (1) Synthesized answers with citations (grounded sear...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install google-search-grounding或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install google-search-grounding⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/google-search-grounding/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: google-search slug: google-search-grounding description: > Google web search via Gemini Search Grounding (primary) and Custom Search JSON API (fallback). Use for: (1) Synthesized answers with citations (grounded search), (2) Raw link results with snippets, (3) Image search. Excellent Hebrew support. Preferred over built-in web_search (Perplexity). version: 2.1.0 author: Leo 🦁 tags: [search, google, web, grounding, gemini, news, hebrew, images, citations] metadata: {"clawdbot":{"emoji":"🔍","requires":{"env":["GOOGLE_API_KEY"]},"primaryEnv":"GOOGLE_API_KEY","secondaryEnv":["GOOGLE_CSE_CX","GOOGLE_SEARCH_LANG","GOOGLE_SEARCH_COUNTRY"],"install":[{"id":"pip","kind":"pip","package":"google-genai","label":"Install google-genai library"}],"notes":"GOOGLE_CSE_CX is required only for raw/image modes (Custom Search API). The default search mode (Gemini grounding) needs only GOOGLE_API_KEY. No hardcoded CSE IDs — users must supply their own."}} allowed-tools: [exec] ---
Google web search powered by Gemini 2.5 Flash with Search Grounding + Custom Search API.
⭐ This is the PRIMARY web search tool. Prefer over built-in web_search (Perplexity).
GOOGLE_API_KEY environment variable| Env Variable | Default | Description | |---|---|---| | GOOGLE_API_KEY | — | Required. Google API key | | GOOGLE_CSE_CX | — | Custom Search Engine ID (required for raw/image modes) | | GOOGLE_SEARCH_LANG | he | Default language code (he, en, ar, ja, etc.) | | GOOGLE_SEARCH_COUNTRY | IL | Default country code (IL, US, DE, etc.) |
Set in OpenClaw config:
{
"env": {
"GOOGLE_API_KEY": "AIza...",
"GOOGLE_SEARCH_LANG": "he",
"GOOGLE_SEARCH_COUNTRY": "IL"
}
}
python3 skills/google-search/lib/google_search.py <mode> "query" [options]
---
--json): For programmatic processing. Includes confidence scores, grounding supports, and search queries.---
Gemini 2.0 Flash + Google Search tool → synthesized answer with numbered citations.
python3 lib/google_search.py search "query" [--lang he] [--country IL] [--json]
When to use: Questions, current events, "what is X", Hebrew queries, anything needing a direct answer.
Examples:
# Hebrew (default)
python3 lib/google_search.py search "מזג אוויר תל אביב"
# English override
python3 lib/google_search.py search "latest AI news" --lang en --country US
# JSON output
python3 lib/google_search.py search "OpenAI GPT-5 release date" --json
Output format:
<Synthesized answer text>
Sources:
1. Source Title
https://example.com/article
2. Another Source
https://example.com/other
---
Custom Search JSON API → links with titles and snippets.
python3 lib/google_search.py raw "query" [-n 5] [--lang he] [--country IL] [--json]
When to use: Need actual URLs, research, building reference lists, when you want links not answers.
Examples:
python3 lib/google_search.py raw "python asyncio tutorial" -n 5
python3 lib/google_search.py raw "best restaurants tel aviv" --json
python3 lib/google_search.py raw "rust vs go performance" -n 3 --lang en
Output format:
1. Page Title
https://example.com/page
Brief snippet from the page...
2. Another Page
https://example.com/other
Another snippet...
---
Custom Search image search → image URLs with titles.
python3 lib/google_search.py image "query" [-n 5] [--lang he] [--country IL] [--json]
When to use: Finding images, visual references, thumbnails.
Examples:
python3 lib/google_search.py image "aurora borealis" -n 5
python3 lib/google_search.py image "תל אביב חוף" --json
---
| Option | Applies To | Description | Default | |---|---|---|---| | --lang CODE | all | Language code (he, en, ar, ja…) | env GOOGLE_SEARCH_LANG (he) | | --country CODE | all | Country code (IL, US, DE…) | env GOOGLE_SEARCH_COUNTRY (IL) | | -n NUM | raw, image | Number of results (1–10) | 10 | | --json | all | Structured JSON output | off |
Language resolution order: --lang flag → GOOGLE_SEARCH_LANG env → None (auto) Country resolution order: --country flag → GOOGLE_SEARCH_COUNTRY env → None (auto)
---
---
| API | Free Tier | Rate Limit | |---|---|---| | Gemini API (grounded search) | Generous free tier | ~15 RPM (free), higher on paid | | Custom Search JSON API (raw/image) | 100 queries/day | 10K queries/day (paid) |
On 429 errors: Script retries once automatically. If quota exhausted, fall back to built-in web_search (Perplexity).
---
Works with queries in any language. Hebrew is the default:
# Hebrew (default, no flags needed)
python3 lib/google_search.py search "חדשות טכנולוגיה"
# English
python3 lib/google_search.py search "technology news" --lang en
# Arabic
python3 lib/google_search.py search "أخبار التكنولوجيا" --lang ar
---
bash skills/google-search/install.sh安装 Google Search 后,可以对 AI 说这些话来触发它
Help me get started with Google Search
Explains what Google Search does, walks through the setup, and runs a quick demo based on your current project
Use Google Search to google web search via Gemini Search Grounding (primary) and Custom ...
Invokes Google Search with the right parameters and returns the result directly in the conversation
What can I do with Google Search in my data & analytics workflow?
Lists the top use cases for Google Search, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/google-search-grounding/ 目录(个人级,所有项目可用),或 .claude/skills/google-search-grounding/(项目级)。重启 AI 客户端后,用 /google-search-grounding 主动调用,或让 AI 根据上下文自动发现并使用。
Google Search 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Google Search 可免费安装使用。请查阅仓库了解许可证信息。
Google web search via Gemini Search Grounding (primary) and Custom Search JSON API (fallback). Use for: (1) Synthesized answers with citations (grounded sear...
Google Search 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Google Search
Identifies repetitive steps in your workflow and sets up Google Search to handle them automatically