360 Secure SkillHub
360 安全技能中心

google-search

该 Skill 通过 Python 脚本调用 Google Custom Search API(可编程搜索引擎),根据命令行关键词执行网络检索,需要配置 GOOGLE_API_KEY 与 GOOGLE_CSE_ID 环境变量,适用于内置网页搜索不可用时获取实时信息或文档。结果的具体格式、分页与错误处理未在材料中说明。

mxfeinberg
mxfeinberg
热度 99.81
最近更新 2026-05-11 15:52:12
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add google-search
Metadata
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:
    GOOGLE_API_KEY=your_key_here
    GOOGLE_CSE_ID=your_cx_id_here
    

Workflow

... (rest of file)

Example Usage

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