360 Secure SkillHub
360 安全技能中心

Google Search

该 Skill 通过 OneKey Gateway 统一访问键调用 google_search 工具,向 Google 自定义搜索接口提交查询词、结果数量与起始序号,返回搜索结果列表;提供 npx onekey CLI 命令和 Python 脚本两种调用方式,需配置访问键并安装对应 npm 与 Python 依赖。

ai-hub-admin
ai-hub-admin
热度 77.95
最近更新 2026-05-11 17:35:11
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add google-search-onekey-gateway
Metadata
name
google-search
description
Auto-generated skill for google-search tools via OneKey Gateway.
env
{"DEEPNLP_ONEKEY_ROUTER_ACCESS":{"required":true,"description":"OneKey Gateway API key"}}
dependencies
{"npm":["@aiagenta2z/onekey-gateway"],"python":["ai-agent-marketplace"]}
installation
{"npm":"npm -g install @aiagenta2z/onekey-gateway","python":"pip install ai-agent-marketplace"}

OneKey Gateway

Use One Access Key to connect to various commercial APIs. Please visit the OneKey Gateway Keys and read the docs OneKey MCP Router Doc and OneKey Gateway Doc.

google-search Skill

Use the OneKey Gateway to access tools for this server via a unified access key.

Quick Start

Set your OneKey access key:

export DEEPNLP_ONEKEY_ROUTER_ACCESS=YOUR_API_KEY

If no key is provided, the scripts fall back to the demo key BETA_TEST_KEY_MARCH_2026. Common settings:

  • unique_id: google-search/google-search
  • api_id: one of the tools listed below

Tools

google_search

Generates google search results by calling google custom search engine API. https://www.googleapis.com/customsearch/v1

    Args:
        query: Annotated[str, "Search Query that User Input"] = "",
        num: Annotated[int, "Return number of search results"] = 10,
        start: Annotated[str, "pagination start index of search item at the number of 0. start=0, num=10 means items from [0, 10), start=10, num=10 means items from [10, 12)"] = 0

    Return:
        results: List[Any], list of search results

Parameters:

  • query (string, optional):
  • num (integer, optional):
  • start (integer, optional):
  • return_fields (array of object, optional):

Usage

CLI

google_search

npx onekey agent google-search/google-search google_search '{"query": "US inflation rate February 2026", "num": 5, "start": 0}'

Scripts

Each tool has a dedicated script in this folder:

  • skills/google-search/scripts/google_search.py

Example

python3 scripts/<tool_name>.py --data '{"key": "value"}'

Related DeepNLP OneKey Gateway Documents

AI Agent Marketplace
Skills Marketplace AI Agent A2Z Deployment
PH AI Agent A2Z Infra
GitHub AI Agent Marketplace

Dependencies

CLI Dependency

Install onekey-gateway from npm

npm install @aiagenta2z/onekey-gateway

Script Dependency

Install the required Python package before running any scripts.

pip install ai-agent-marketplace

Alternatively, install dependencies from the requirements file:

pip install -r requirements.txt

If the package is already installed, skip installation.

Agent rule

Before executing command lines or running any script in the scripts/ directory, ensure the dependencies are installed. Use the onekey CLI as the preferred method to run the skills.