360 Secure SkillHub
360 安全技能中心

Brave Search

基于 OneKey Gateway 统一访问密钥接入 Brave Search,提供 brave_web_search 网页搜索与 brave_local_search 本地商家搜索两个工具,支持结果数量、分页偏移等参数;可通过 npx onekey CLI 命令或随附的 Python 脚本调用,使用前需安装依赖并配置访问密钥。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add brave-search-onekey-gating
Metadata
name
brave-search
description
Auto-generated skill for brave-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.

brave-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: brave-search/brave-search
  • api_id: one of the tools listed below ``## Tools

brave_web_search

Performs a web search using the Brave Search API, ideal for general queries, news, articles, and online content. Use this for broad information gathering, recent events, or when you need diverse web sources. Supports pagination, content filtering, and freshness controls. Maximum 20 results per request, with offset for pagination.

``Parameters:

  • query (string, required): Search query (max 400 chars, 50 words)
  • count (number, optional): Number of results (1-20, default 10)
  • offset (number, optional): Pagination offset (max 9, default 0)

brave_local_search

Searches for local businesses and places using Brave's Local Search API. Best for queries related to physical locations, businesses, restaurants, services, etc. Returns detailed information including:

  • Business names and addresses
  • Ratings and review counts
  • Phone numbers and opening hours Use this when the query implies 'near me' or mentions specific locations. Automatically falls back to web search if no local results are found.

Parameters:

  • query (string, required): Local search query (e.g. 'pizza near Central Park')
  • count (number, optional): Number of results (1-20, default 5)

Usage

CLI

brave_web_search

npx onekey agent brave-search/brave-search brave_web_search '{"query": "latest AI research 2026"}'

brave_local_search

npx onekey agent brave-search/brave-search brave_local_search '{"query": "coffee near Times Square"}'

Scripts

Each tool has a dedicated script in this folder:

  • skills/brave-search/scripts/brave_web_search.py
  • skills/brave-search/scripts/brave_local_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.