← 返回
未分类 Key 中文

Tavily Skill.Bak

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the...
使用 Tavily API 进行实时网络搜索和内容提取。用于:用户需要实时搜索结果、研究或获取当前信息时。
aysun168 aysun168 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 293
下载
💾 1
安装
1
版本
#latest

概述

Tavily Search Skill

Use Tavily API for real-time web search and content extraction.

When to Use

USE this skill when:

  • "Search the web for [topic]"
  • "Find recent information about [subject]"
  • "Get current news about [topic]"
  • "Research [topic] online"
  • "Find up-to-date information"

When NOT to Use

DON'T use this skill when:

  • Simple URL fetching → use web_fetch tool
  • No API key available → use web_fetch for specific URLs
  • Historical/archival data → use specialized archives

Setup

  1. Get a Tavily API key from https://tavily.com
  2. Set the API key in environment or config

Configuration

Set your Tavily API key in one of these ways:

Environment variable:

export TAVILY_API_KEY="your-api-key-here"

OpenClaw config:

Add to your openclaw.json:

{
  "tavily": {
    "apiKey": "your-api-key-here"
  }
}

Usage Examples

Basic Search

# Search for a topic
curl -X POST "https://api.tavily.com/search" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -d '{
    "query": "latest AI developments 2026",
    "search_depth": "basic",
    "max_results": 5
  }' | jq .

Research Query

# Get detailed research results
curl -X POST "https://api.tavily.com/search" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -d '{
    "query": "climate change impact on agriculture 2026",
    "search_depth": "advanced",
    "max_results": 10,
    "include_answer": true,
    "include_images": false
  }' | jq .

News Search

# Search for recent news
curl -X POST "https://api.tavily.com/search" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TAVILY_API_KEY" \
  -d '{
    "query": "technology news today",
    "search_depth": "basic",
    "max_results": 5,
    "include_raw_content": false
  }' | jq .

API Parameters

  • query: Search query string (required)
  • search_depth: "basic" or "advanced" (default: "basic")
  • max_results: Number of results (1-10, default: 5)
  • include_answer: Include AI-generated answer (true/false)
  • include_images: Include image URLs (true/false)
  • include_raw_content: Include full page content (true/false)

Error Handling

  • Check API key is set: echo $TAVILY_API_KEY
  • Test connection: Use the basic search example above
  • Rate limits: Tavily has usage limits based on your plan

Alternatives

If Tavily API is not available:

  1. Use web_fetch for specific URLs
  2. Use web_search with Kimi API (if configured)
  3. Manual web browsing with browser tool

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 15:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Baidu Search.Bak

aysun168
使用百度AI搜索引擎(BDSE)搜索网页,用于获取实时信息、文档或研究主题
★ 0 📥 413

Self Improving.Bak

aysun168
自我反思 + 自我批评 + 自我学习 + 自我组织记忆。智能体评估自身工作,捕捉错误,永久改进。使用场景:
★ 0 📥 361

Skill Vetter.Bak

aysun168
在安装来自 ClawdHub、GitHub 等来源的技能前,以安全为核心进行审查,检查危险信号和权限范围。
★ 0 📥 332