Google Search (Serper.dev)
简介
Google Search (Serper.dev)
原始描述
Google Search powered by Serper.dev API — 9 search types: web, news, images, videos, places, shopping, scholar, patents, autocomplete. Returns Knowledge Grap...
通过你的 Agent 添加
安装目录:google-search-serper-dev/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
Google Search Skill
Google Search powered by Serper.dev API. Replaces Brave Search with richer results including Knowledge Graph, Answer Box, People Also Ask, and specialized search types.
When to Use
Use this skill for any Google search request. Auto-detect intent:
- Default →
search - "news about X" / "latest X" →
news - "images of X" / "pictures of X" →
images - "videos of X" / "how to X video" →
videos - "restaurants near X" / "X near me" →
places - "how much does X cost" / "buy X" →
shopping(⚠️ 2 credits — only when explicitly requested) - "papers on X" / "research about X" →
scholar - "patents for X" →
patents - "suggestions for X" →
suggest
Usage
SCRIPT_DIR="~/.openclaw/workspace/skills/google-search/scripts"
# Web search (default)
npx tsx $SCRIPT_DIR/google-search.ts search "query" [--num 10] [--time day|week|month|year] [--country us] [--lang en]
# Specialized
npx tsx $SCRIPT_DIR/google-search.ts news "query" [--num 10]
npx tsx $SCRIPT_DIR/google-search.ts images "query"
npx tsx $SCRIPT_DIR/google-search.ts videos "query"
npx tsx $SCRIPT_DIR/google-search.ts places "query"
npx tsx $SCRIPT_DIR/google-search.ts shopping "query"
npx tsx $SCRIPT_DIR/google-search.ts scholar "query" [--year 2023]
npx tsx $SCRIPT_DIR/google-search.ts patents "query"
npx tsx $SCRIPT_DIR/google-search.ts suggest "query"
npx tsx $SCRIPT_DIR/google-search.ts credits
SCRIPT_DIR="~/.openclaw/workspace/skills/google-search/scripts"
# Web search (default)
npx tsx $SCRIPT_DIR/google-search.ts search "query" [--num 10] [--time day|week|month|year] [--country us] [--lang en]
# Specialized
npx tsx $SCRIPT_DIR/google-search.ts news "query" [--num 10]
npx tsx $SCRIPT_DIR/google-search.ts images "query"
npx tsx $SCRIPT_DIR/google-search.ts videos "query"
npx tsx $SCRIPT_DIR/google-search.ts places "query"
npx tsx $SCRIPT_DIR/google-search.ts shopping "query"
npx tsx $SCRIPT_DIR/google-search.ts scholar "query" [--year 2023]
npx tsx $SCRIPT_DIR/google-search.ts patents "query"
npx tsx $SCRIPT_DIR/google-search.ts suggest "query"
npx tsx $SCRIPT_DIR/google-search.ts credits
Add --json to any command for raw JSON output.
Environment
Requires SERPER_API_KEY env var.
Workflow
- Run the appropriate search command
- Parse the formatted output
- If deeper content is needed, use
web_fetch on promising links
- Credit balance is shown in every response — monitor usage
- Shopping costs 2 credits — only use when user explicitly asks for prices/shopping
Time Filters
web_fetch on promising links--time accepts: hour, day, week, month, year (or h, d, w, m, y)
Notes
- Rate limit: 5 req/sec on free tier
- All searches cost 1 credit except shopping (2 credits)
- Results include rich data: Knowledge Graph, Answer Box, People Also Ask, Related Searches
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。