π¦ ClawHub
Google Search Skill
by @minilozio
Performs Google searches with rich results including news, images, videos, places, shopping, scholar papers, patents, and search suggestions via Serper.dev API.
TERMINAL
clawhub install serper-google-searchπ About This Skill
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:searchnewsimagesvideosplacesshopping (β οΈ 2 credits β only when explicitly requested)scholarpatentssuggestUsage
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
RequiresSERPER_API_KEY env var.Workflow
1. Run the appropriate search command 2. Parse the formatted output 3. If deeper content is needed, useweb_fetch on promising links
4. Credit balance is shown in every response β monitor usage
5. Shopping costs 2 credits β only use when user explicitly asks for prices/shoppingTime Filters
--time accepts: hour, day, week, month, year (or h, d, w, m, y)Notes
β‘ When to Use
π‘ Examples
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.