Agent Skills › espressif/esp-claw › cap_web_search

cap_web_search

GitHub

通过Bocha、Tavily或Brave提供商执行公共网络搜索,获取最新新闻、实时信息或事实。适用于需要新鲜数据而非模型记忆的场景,支持结构化查询与结果摘要。

components/claw_capabilities/cap_web_search/skills/cap_web_search/SKILL.md espressif/esp-claw

触发场景

用户询问当前新闻或近期动态 用户要求搜索特定主题、公司或产品 答案若基于过时知识存在风险时

安装

npx skills add espressif/esp-claw --skill cap_web_search -g -y
更多选项

非标准路径

npx skills add https://github.com/espressif/esp-claw/tree/master/components/claw_capabilities/cap_web_search/skills/cap_web_search -g -y

不安装直接使用

npx skills use espressif/esp-claw@cap_web_search

指定 Agent (Claude Code)

npx skills add espressif/esp-claw --skill cap_web_search -a claude-code -g -y

安装 repo 全部 skill

npx skills add espressif/esp-claw --all -g -y

预览 repo 内 skill

npx skills add espressif/esp-claw --list

SKILL.md

Frontmatter
{
    "name": "cap_web_search",
    "metadata": {
        "cap_groups": [
            "cap_web_search"
        ]
    },
    "description": "Search the public web for current information through the selected Bocha, Tavily, or Brave provider."
}

Web Search

Use this skill when the user needs current public web information that should be fetched through the built-in search capability instead of answered from memory.

When to use

  • The user asks for current news, recent developments, live information, or up-to-date facts.
  • The user asks to search the web for a topic, company, product, documentation page, or article.
  • The task needs a few likely sources or result links before summarizing.
  • The answer would be risky if guessed from stale model knowledge.

Available capability

  • web_search: search the web with the configured provider and return concise formatted results.

Provider behavior

  • The runtime uses the explicitly selected Bocha, Tavily, or Brave provider.
  • Configure the provider and its API key in the web settings, then save and restart.
  • Missing keys or failed requests return an error; the runtime does not switch providers.

Calling rules

  • Call web_search directly. Do not route web search through CLI wrappers unless the user explicitly asks for console commands.
  • Input must be a JSON object with one required field:
{
  "query": "your search query"
}
  • Keep queries short and concrete. Prefer one clear search intent per call.
  • If the user asks a compound question, split it into separate searches when needed instead of cramming everything into one long query.
  • Use search when freshness matters. Do not use it for stable facts that can be answered locally.

Output shape

  • The capability returns plain text, not structured JSON.
  • Results are formatted as a short numbered list.
  • Each item typically contains:
    • title
    • URL
    • short snippet/content
  • If no result is found, the output is No web results found.
  • Common error strings include:
    • Error: selected search provider has no API key
    • Error: invalid input JSON
    • Error: missing query
    • Error: search request failed (...)
    • Error: failed to parse search results

Recommended workflow

  1. Decide whether the user needs fresh web information or a normal answer.
  2. Write one focused query.
  3. Call web_search.
  4. Read the returned snippets and URLs.
  5. Summarize the findings for the user and mention uncertainty when the results are weak or mixed.

Common failure causes

  • Calling web_search with no query.
  • Using a vague query like news or weather without the target subject or location.
  • Expecting structured JSON output; this capability returns formatted text.
  • Assuming the provider is available when no API key is configured.

Examples

Search for current documentation:

{
  "query": "ESP-IDF mDNS example"
}

Search for a recent topic:

{
  "query": "latest Espressif ESP32 AI news"
}

Search for a product or company:

{
  "query": "Brave Search API pricing"
}

版本历史

  • 36b377f 当前 2026-11-02 21:37

    Provider behavior从偏好Tavily并回退Brave,改为使用显式选择的提供商;不再自动切换提供商。

  • 06eb576 2026-07-24 19:54

同 Skill 集合

components/claw_capabilities/cap_app_mgr/skills/app_creator/SKILL.md
components/claw_capabilities/cap_http_request/skills/cap_http_request/SKILL.md
components/claw_capabilities/cap_im_platform/skills/cap_im_platform/SKILL.md
components/claw_capabilities/cap_router_mgr/skills/cap_router_mgr/SKILL.md
components/claw_capabilities/cap_scheduler/skills/cap_scheduler/SKILL.md
components/claw_capabilities/cap_skill_mgr/skills/skills_lab_downloader/SKILL.md
components/claw_capabilities/cap_skill_mgr/skills/skills_lab_search/SKILL.md
components/claw_modules/claw_memory/skills/memory_ops/SKILL.md
components/claw_modules/claw_memory/skills/profile_memory_ops/SKILL.md
components/common/lua_module_builder/skills/lua_package_authoring/SKILL.md
components/common/skill_builder/skills/skill_creator/SKILL.md
components/common/skill_builder/skills/skills_lab_downloader/SKILL.md
components/common/skill_builder/skills/skills_lab_search/SKILL.md
components/lua_modules/lua_driver_touch/skills/read_touch/SKILL.md
components/lua_modules/lua_module_ble_hid/skills/ble_hid/SKILL.md
components/lua_modules/lua_module_ble/skills/ble/SKILL.md
components/lua_modules/lua_module_camera/skills/take_picture/SKILL.md
components/lua_modules/lua_module_display/skills/bdf_font_converter/SKILL.md
components/lua_modules/lua_module_http_server/skills/http_server_lua_demo/SKILL.md
components/claw_capabilities/cap_llm_inspect/skills/cap_llm_inspect_image/SKILL.md

元信息

文件数
0
版本
36b377f
Hash
c555e3c6
收录时间
2026-07-24 19:54

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-06 19:00
浙ICP备14020137号-1