据 AlphaMoat 统计,截至 2026-09,Google Search 累计下载 2,874 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 3,815 位,在「知识管理」分类(442 个)中排名第 330 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 79 | 2,463 | 3 | - |
| SkillHub ↗ | 115 | 2,874 | 3 | — |
各平台的计数口径不同,统计时间不一致。
支持生成带来源引用的综合回答、返回标题和摘要链接,或搜索图片。需要配置 Google API 密钥;搜索词会发送到 Google 服务,避免提交密码、客户隐私或敏感内部信息,并按目标地区设置语言和国家。 审查安装程序,并在虚拟环境中固定 google-genai 版本。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 2,874 | — | 3 |
| 2026-08 | 2,535 | +8.7% | 3 |
| 2026-07 | 2,333 | +10.2% | 3 |
| 2026-06 | 2,118 | +5.5% | 3 |
| 2026-05 | 2,007 | — | 3 |
| 2026-03 | 1,716 | — | 3 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- 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 Search 🔍
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).**
## Requirements
- `GOOGLE_API_KEY` environment variable
- Enable in Google Cloud Console: Gemini API, Custom Search JSON API
## Configuration
| 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:
```json
{
"env": {
"GOOGLE_API_KEY": "AIza...",
"GOOGLE_SEARCH_LANG": "he",
"GOOGLE_SEARCH_COUNTRY": "IL"
}
}
```
## Script Location
```bash
python3 skills/google-search/lib/google_search.py <mode> "query" [options]
```
---
## Output Modes
- **Text mode** (default): Best for most use cases. Clean readable output with answer, sources, and search queries.
- **JSON mode** (`--json`): For programmatic processing. Includes confidence scores, grounding supports, and search queries.
---
## Modes
### search — Grounded Search (Default, Recommended)
Gemini 2.0 Flash + Google Search tool → **synthesized answer with numbered citations**.
```bash
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:**
```bash
# 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
```
---
### raw — Raw Search Results
Custom Search JSON API → **links with titles and snippets**.
```bash
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:**
```bash
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...
```
---
### image — Image Search
Custom Search image search → **image URLs with titles**.
```bash
python3 lib/google_search.py image "query" [-n 5] [--lang he] [--country IL] [--json]
```
**When to use:** Finding images, visual references, thumbnails.
**Examples:**
```bash
python3 lib/google_search.py image "aurora borealis" -n 5
python3 lib/google_search.py image "תל אביב חוף" --json
```
---
## Options Reference
| 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)
---
## Error Handling
- **Missing API key:** Clear error message with setup instructions.
- **429 Rate Limit:** Automatic retry once after 5-second wait.
- **Network errors:** Descriptive error with cause.
- **No results:** Clean "No results found." message.
- **Timeout:** 30-second timeout on all HTTP requests.
---
## Quota & Rate Limits
| 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).
---
## Multilingual Support
Works with queries in any language. Hebrew is the default:
```bash
# 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
```
---
## Install
```bash
bash skills/google-search/install.sh
```
把长文本、文档与网页内容压缩成要点和关键词的摘要工具。
通过 IMA OpenAPI 管理笔记与知识库内容。
规定如何为网页请求选择合适工具的必读指引。
调用百度 AI 搜索接口做网页检索的技能。
用 uvx 直接调用 markitdown,把各类文件转成 Markdown。
面向 OpenClaw 的默认网页搜索,实时检索多个引擎。
用 DuckDuckGo 接口做网页、新闻、图片与视频检索的技能。
检索并发现可用 OpenClaw 技能的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。