← 返回
开发者工具 Key 中文

Brave Web Search

Searches the web and returns ranked results or AI-generated summarized answers using the Brave Search API. Use for real-time web lookups and factual Q&A.
使用 Brave Search API 搜索网络,返回排序结果或 AI 生成的摘要答案。适用于实时网页查询和事实性问答。
kghamilton89
开发者工具 clawhub v1.0.1 1 版本 99548.2 Key: 需要
★ 0
Stars
📥 3,085
下载
💾 66
安装
1
版本
#latest

概述

Brave Web Search

Searches the web and fetches AI-generated summarized answers using the Brave Search API. Exposes two commands: brave-search for ranked web results and brave-answer for concise AI summaries.

Instructions

  1. Trigger: Activate when the user wants to look something up on the web, check recent news, or get a factual answer to a question.
  2. Setup: No installation step is required — this skill has zero external dependencies and runs on native Node.js.
  3. Command selection:
    • Use brave-search for general web searches where ranked results with URLs and snippets are useful.
    • Use brave-answer for direct factual questions where a concise AI summary is more appropriate.
  4. Execution: Invoke the script by passing the command name and parameters as separate arguments, never by interpolating user input into a shell command string. Use an argument array / execFile-style invocation so the shell never parses user-supplied values. Example (Node-style pseudo-code):

```javascript

execFile('node', ['index.js', 'brave-search', '--query', userQuery, '--count', '10'])

```

Do not construct the command as a single concatenated string such as "node index.js brave-search --query " + userQuery.

  1. Freshness: For time-sensitive queries, pass --freshness followed by pd (past day), pw (past week), or pm (past month) as a separate argument to brave-search.
  2. Fallback: If brave-answer returns answer: null, present the fallback_results to the user instead.
  3. Completion: Present the results clearly, citing titles and URLs for web search results, or the summary text for answer results.

Security & Privacy

  • Shell Injection Prevention: User queries must be passed as discrete arguments (e.g. via execFile or an argv array), never interpolated into a shell command string. Concatenating user input into a shell string (e.g. shell: true with template literals) enables shell injection and is strictly forbidden.
  • Instruction Scope: This skill only sends query strings to the Brave Search and Brave Summarizer APIs.
  • Environment: It uses the BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY provided by the OpenClaw environment.
  • Data Access: It does not read local files or .env files. All configuration is handled by the agent.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-28 22:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,739
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,872
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,845