tavily-usage

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Tavily Search and Extract

Tavily 搜索与提取

Use Tavily MCP tools for web search and content retrieval operations.
使用Tavily MCP工具执行网页搜索和内容检索操作。

Tool Selection

工具选择

Tavily Search (
mcp__tavily__tavily_search
)

Tavily Search (
mcp__tavily__tavily_search
)

Use for:
  • Keyword-based searches across the web
  • Finding relevant pages and content
  • Quick answer gathering
  • Multiple result discovery
Best for: Initial research, finding sources, broad queries
适用场景:
  • 基于关键词的全网搜索
  • 查找相关页面与内容
  • 快速收集答案
  • 发现多个搜索结果
最佳用途:初步调研、查找信息来源、宽泛类查询

Tavily Extract (
mcp__tavily__tavily-extract
)

Tavily Extract (
mcp__tavily__tavily-extract
)

Use for:
  • Getting detailed content from specific URLs
  • Deep analysis of page content
  • Structured data extraction
  • Following up on search results
Best for: In-depth analysis, specific URL content, detailed information
适用场景:
  • 从特定URL获取详细内容
  • 对页面内容进行深度分析
  • 提取结构化数据
  • 基于搜索结果进行后续深挖
最佳用途:深度分析、特定URL内容获取、详细信息提取

Hook Behavior

Hook 行为

tavily_extract_to_advanced.py
hook automatically upgrades extract calls to advanced mode for better accuracy when needed.
当需要更高准确性时,
tavily_extract_to_advanced.py
Hook会自动将提取调用升级为高级模式。

Integration Pattern

集成模式

  1. Use
    mcp__tavily__tavily_search
    for discovery phase
  2. Analyze results to find relevant URLs
  3. Use
    mcp__tavily__tavily-extract
    for detailed content on specific URLs
  4. Process extracted content for user needs
  1. 使用
    mcp__tavily__tavily_search
    完成发现阶段
  2. 分析结果以找到相关URL
  3. 使用
    mcp__tavily__tavily-extract
    获取特定URL的详细内容
  4. 处理提取的内容以满足用户需求

Environment Variables

环境变量

Tavily MCP requires:
  • TAVILY_API_KEY
    - API key from Tavily (tvly-...)
Configure in shell before using the plugin.
Tavily MCP需要配置以下环境变量:
  • TAVILY_API_KEY
    - 来自Tavily的API密钥(格式为tvly-...)
在使用该插件前,请在Shell中完成配置。

Cost Considerations

成本考量

  • Search is cheaper than extract
  • Use search to filter relevant URLs first
  • Only extract URLs that are likely relevant
  • Cache results when possible
  • 搜索的成本低于提取
  • 先使用搜索筛选出相关URL
  • 仅对可能相关的URL执行提取操作
  • 尽可能缓存结果