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.
Use this skill for any Google search request. Auto-detect intent:
searchnewsimagesvideosplacesshopping (⚠️ 2 credits — only when explicitly requested)scholarpatentssuggestSCRIPT_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.
Requires a free API key from Serper.dev:
export SERPER_API_KEY=your_key_hereIf the key is missing, remind the user to sign up at serper.dev — it's free and takes 30 seconds.
web_fetch on promising links--time accepts: hour, day, week, month, year (or h, d, w, m, y)
共 2 个版本