ClawSkills logoClawSkills

google-search

使用 Google 自定义搜索引擎 (PSE) 搜索网络。当您需要实时信息、文档或研究主题以及内置的 web_searc

介绍

# Google Search Skill

此技能允许 OpenClaw 代理通过 Google 自定义搜索 API (PSE) 执行网络搜索。

## 设置

1. **Google Cloud Console:** 创建一个项目并启用 "Custom Search API"。 2. **API Key:** 生成一个 API Key。 3. **搜索引擎 ID (CX):** 在 [cse.google.com](https://cse.google.com/cse/all) 创建一个可编程搜索引擎 (Programmable Search Engine),并获取您的 CX ID。 4. **环境:** 将您的凭据存储在工作区的 `.env` 文件中: ``` GOOGLE_API_KEY=your_key_here GOOGLE_CSE_ID=your_cx_id_here ```

## 工作流 ... (文件剩余部分)

## 示例用法

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

更多产品