Tavily Search

👤 matthew77 📦 v1.0.1 ⭐ 4.4 ⬇️ 54.4K 下载
🤖 AI-Agent 免费 🔑 需 API Key

📖 技能介绍


name: tavily-search description: Web search using Tavily's LLM-optimized API. Returns relevant results with content snippets, scores, and metadata. homepage: https://tavily.com metadata: {"openclaw":{"emoji":"🔍","requires":{"bins":["node"],"env":["TAVILY_API_KEY"]},"primaryEnv":"TAVILY_API_KEY"}}


Tavily Search

Search the web and get relevant results optimized for LLM consumption.

Authentication

Get your API key at https://tavily.com and add to your OpenClaw config:

{
  "skills": {
    "entries": {
      "tavily-search": {
        "enabled": true,
        "apiKey": "tvly-YOUR_API_KEY_HERE"
      }
    }
  }
}

Or set the environment variable:

export TAVILY_API_KEY="tvly-YOUR_API_KEY_HERE"

Quick Start

Using the Script

node {baseDir}/scripts/search.mjs "query"
node {baseDir}/scripts/search.mjs "query" -n 10
node {baseDir}/scripts/search.mjs "query" --deep
node {baseDir}/scripts/search.mjs "query" --topic news

Examples

# Basic search
node {baseDir}/scripts/search.mjs "python async patterns"

# With more results
node {baseDir}/scripts/search.mjs "React hooks tutorial" -n 10

# Advanced search
node {baseDir}/scripts/search.mjs "machine learning" --deep

# News search
node {baseDir}/scripts/search.mjs "AI news" --topic news

# Domain-filtered search
node {baseDir}/scripts/search.mjs "Python docs" --include-domains docs.python.org

Options

Option Description Default
-n <count> Number of results (1-20) 10
--depth <mode> Search depth: ultra-fast, fast, basic, advanced basic
--topic <topic> Topic: general or news general
--time-range <range> Time range: day, week, month, year -
--include-domains <domains> Comma-separated domains to include -
--exclude-domains <domains> Comma-separated domains to exclude -
--raw-content Include full page content false
--json Output raw JSON false

Search Depth

Depth Latency Relevance Use Case
ultra-fast Lowest Lower Real-time chat, autocomplete
fast Low Good Need chunks but latency matters
basic Medium High General-purpose, balanced
advanced Higher Highest Precision matters, research

Tips

  • Keep queries under 400 characters - Think search query, not prompt
  • Break complex queries into sub-queries - Better results than one massive query
  • Use --include-domains to focus on trusted sources
  • Use --time-range for recent information

    7w4.net提供免费和付费技能下载。

  • Filter by score (0-1) to get highest relevance results

🤖 AI 评测

整体质量较好,搜索功能完整且易于上手。文档清晰详细,参数选项丰富实用,支持深度搜索和精准过滤。代码运行稳定,错误提示友好,能正确展示搜索结果和相关性评分。美中不足的是缺少示例文件,配置方式略显单一,不够开箱即用。适合对网络搜索有较高要求、愿意配置 API 的用户使用。

📊 多维度评分

适应性4.3
规范性4.4
有效性4.8
可靠性4.2
可信度4.3

📁 包含文件 (3 个)

📄 SKILL.md 2.7 KB
📄 _meta.json 138 B
📄 scripts/search.mjs 3.9 KB