← 返回
数据分析 Key 中文

Tavily Web Search

Real-time web search using Tavily API optimized for AI agents. Use when you need current information, recent news, factual research, competitive analysis, or...
使用Tavily API进行针对AI智能体优化的实时网络搜索。适用于需要获取最新资讯、近期新闻、事实调研、竞品分析等场景。
moochmaniac
数据分析 clawhub v1.0.0 1 版本 99826.2 Key: 需要
★ 9
Stars
📥 4,416
下载
💾 246
安装
1
版本
#latest

概述

Tavily Search

Web search powered by Tavily API, optimized for AI agent consumption with structured, relevant results.

When to Use

  • User asks for current/recent information beyond training cutoff
  • Research tasks requiring multiple sources
  • Fact-checking or verification
  • Competitor analysis, market research
  • News and updates on specific topics
  • Finding documentation or resources

Quick Start

Basic search (5 results):

python3 scripts/search.py "your query here"

With options:

# Fewer results
python3 scripts/search.py "AI agents" --max-results 3

# AI-generated answer
python3 scripts/search.py "what is OpenClaw" --answer

# Advanced search (deeper crawling)
python3 scripts/search.py "casino bonuses" --depth advanced

# Include images
python3 scripts/search.py "WordPress themes" --images

# Raw JSON output
python3 scripts/search.py "n8n automation" --json

Parameters

  • query (required): Search query string
  • --max-results N: Number of results (1-10, default 5)
  • --depth: Search depth
  • basic (default): Fast, good for most queries
  • advanced: Deeper crawling, more comprehensive
  • --answer: Include AI-generated answer summary
  • --images: Include relevant image URLs
  • --json: Output raw JSON instead of formatted text

Output Structure

Formatted output includes:

  • Query and response time
  • AI-generated answer (if requested)
  • Search results with:
  • Title and URL
  • Relevance score (0-1)
  • Content snippet (truncated to 300 chars)
  • Images (if requested)

JSON output provides full Tavily API response for programmatic use.

API Key Setup

The script looks for the Tavily API key in:

  1. workspace/secrets/tavily_api_key (OpenClaw workspace)
  2. secrets/tavily_api_key (relative to current directory)
  3. TAVILY_API_KEY environment variable

Current key is stored at: workspace/secrets/tavily_api_key

Examples

Research task:

python3 scripts/search.py "WordPress plugin security best practices 2026" --max-results 5 --answer

Quick fact check:

python3 scripts/search.py "OpenClaw GitHub repository" --max-results 3

Competitive analysis:

python3 scripts/search.py "top casino affiliate sites" --depth advanced --max-results 10

News monitoring:

python3 scripts/search.py "AI agent frameworks January 2026" --answer

Tips

  • Use specific queries for better results
  • --answer is useful for summarization tasks
  • --depth advanced for comprehensive research (uses more API credits)
  • Relevance scores help identify best sources
  • --json output is useful for parsing and processing results programmatically

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 06:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,118
developer-tools

Firecrawl Web Scraper

moochmaniac
使用 Firecrawl API 进行网页抓取、遍历和搜索,将网页转换为干净的 Markdown/JSON,专为 AI 消费优化,适用于需要提取内容的场景。
★ 0 📥 547
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,458