← 返回
未分类 Key

Chen Tavily Search

Web search using Tavily's LLM-optimized API. Returns relevant results with content snippets, scores, and metadata.
cs995279497-byte
未分类 clawhub v1.0.0 100000 Key: 需要
★ 0
Stars
📥 455
下载
💾 1
安装

概述

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": "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"
      }
    }
  }
}

Or set the environment variable:

export TAVILY_API_KEY="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"

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

OptionDescriptionDefault
------------------------------
-n Number of results (1-20)10
--depth Search depth: ultra-fast, fast, basic, advancedbasic
--topic Topic: general or newsgeneral
--time-range Time range: day, week, month, year-
--include-domains Comma-separated domains to include-
--exclude-domains Comma-separated domains to exclude-
--raw-contentInclude full page contentfalse
--jsonOutput raw JSONfalse

Search Depth

DepthLatencyRelevanceUse Case
-------------------------------------
ultra-fastLowestLowerReal-time chat, autocomplete
fastLowGoodNeed chunks but latency matters
basicMediumHighGeneral-purpose, balanced
advancedHigherHighestPrecision 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
  • Filter by score (0-1) to get highest relevance results

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 08:53 安全 安全

安全检测

暂无安全检测报告