AgentSkillsCN

google-search

使用Google自定义搜索引擎(PSE)进行网络搜索。当您需要实时信息、权威文档,或在内置的web_search功能无法使用时,便可以借助此工具展开研究。

SKILL.md
--- frontmatter
name: google-search
description: Search the web using Google Custom Search Engine (PSE). Use this when you need live information, documentation, or to research topics and the built-in web_search is unavailable.

Google Search Skill

This skill allows OpenClaw agents to perform web searches via Google's Custom Search API (PSE).

Setup

  1. Google Cloud Console: Create a project and enable the "Custom Search API".
  2. API Key: Generate an API Key.
  3. Search Engine ID (CX): Create a Programmable Search Engine at cse.google.com, and get your CX ID.
  4. Environment: Store your credentials in a .env file in your workspace:
    code
    GOOGLE_API_KEY=your_key_here
    GOOGLE_CSE_ID=your_cx_id_here
    

Workflow

... (rest of file)

Example Usage

bash
GOOGLE_API_KEY=xxx GOOGLE_CSE_ID=yyy python3 skills/google-search/scripts/search.py "OpenClaw documentation"