tavily-search

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 web. Requires Tavily API key.

3,891 stars
Complexity: easy

About this skill

This skill integrates Tavily's highly optimized web search API directly into AI agent workflows. It enables agents to access real-time information from the web, overcoming the limitations of their training data and knowledge cut-off dates. The skill retrieves web content, extracts concise snippets, assigns relevance scores, and includes valuable metadata, all structured for efficient processing by large language models. AI agents can leverage this for a wide range of tasks, including factual verification, comprehensive topic research, gathering current event data, or enriching their responses with up-to-date context. It minimizes the need for extensive post-processing by the LLM, as Tavily's API is designed to deliver precisely what an AI needs to understand and utilize web information effectively. Developers and agents benefit from fine-grained control over searches through various options like specifying search depth, topic (general or news), time ranges, and including or excluding specific domains. This ensures that the agent receives the most pertinent and filtered information for its specific query, leading to more accurate, reliable, and contextually rich interactions.

Best use case

The primary use case is to equip AI agents with real-time, external web access for retrieving factual information, current events, or specific data points that extend beyond their internal knowledge bases. This skill is most beneficial for AI developers and advanced users who need their agents to perform accurate, up-to-date research and verification tasks.

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 web. Requires Tavily API key.

The user should expect a structured list of web search results, each containing a URL, title, content snippet, and relevance score, optimized for direct consumption by an AI model.

Practical example

Example input

Search Tavily for 'latest advancements in quantum computing' and provide me with the top 2 results and their summaries.

Example output

```json
[
  {
    "title": "Quantum Computing's Next Leap Forward",
    "url": "https://www.nature.com/articles/s41586-023-06637-2",
    "snippet": "Recent breakthroughs in error correction and qubit stability are pushing quantum computing closer to practical applications, focusing on fault-tolerant systems and new algorithmic developments.",
    "score": 0.95
  },
  {
    "title": "AI and Quantum: A Synergistic Future",
    "url": "https://www.ibm.com/blogs/research/2023-11-ai-quantum-synergy/",
    "snippet": "Researchers are exploring how quantum algorithms can accelerate AI training and inference, potentially revolutionizing fields from drug discovery to financial modeling, highlighting the intersection of these two transformative technologies.",
    "score": 0.91
  }
]
```

When to use this skill

  • When an AI agent needs current information beyond its training data's knowledge cut-off.
  • To fact-check or verify information generated by an LLM against live web sources.
  • For conducting targeted research on specific topics, domains, or within particular timeframes.
  • When an an AI agent needs to act as a web-enabled research assistant or content curator.

When not to use this skill

  • When the required information is static, already within the LLM's knowledge, and doesn't require external validation.
  • For purely creative or generative tasks that do not necessitate factual accuracy from the web.
  • In environments where an internet connection is unavailable or prohibited for security reasons.
  • If the cost of API calls to an external search service is a significant concern for the task.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/tavily-skill-bak/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aysun168/tavily-skill-bak/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/tavily-skill-bak/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How tavily-search Compares

Feature / Agenttavily-searchStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

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 web. Requires Tavily API key.

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 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:
```bash
export TAVILY_API_KEY="your-api-key-here"
```

### OpenClaw config:
Add to your `openclaw.json`:
```json
{
  "tavily": {
    "apiKey": "your-api-key-here"
  }
}
```

## Usage Examples

### Basic Search
```bash
# 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
```bash
# 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
```bash
# 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

Related Skills

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research

openclaw-search

3891
from openclaw/skills

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

Data & Research

aisa-tavily

3891
from openclaw/skills

AI-optimized web search via AIsa's Tavily API proxy. Returns concise, relevant results for AI agents through AIsa's unified API gateway.

Data & Research

search-cluster

3891
from openclaw/skills

Aggregated search aggregator using Google CSE, GNews RSS, Wikipedia, Reddit, and Scrapling.

Data & Research

exa-web-search-free

3891
from openclaw/skills

Free AI search via Exa MCP. Web search for news/info, code search for docs/examples from GitHub/StackOverflow, company research for business intel. No API key needed.

Data & Research

duckduckgo-search

3891
from openclaw/skills

Performs web searches using DuckDuckGo to retrieve real-time information from the internet. Use when the user needs to search for current events, documentation, tutorials, or any information that requires web search capabilities.

Data & Research

youtube-search

3891
from openclaw/skills

YouTube Search API via AIsa unified endpoint. Search YouTube videos, channels, and playlists with a single AIsa API key — no Google API key or OAuth required. Use this skill when users want to search YouTube content. For other AIsa capabilities (LLM, financial data, Twitter, web search), see the aisa-core skill.

Data & Research

X/Twitter Research Skill

3891
from openclaw/skills

Research trending topics, ideas, and conversations on X (Twitter) using twitterapi.io.

Data & Research

token-research

3891
from openclaw/skills

Comprehensive token research for EVM chains (Base, ETH, Arbitrum) and Solana. Use this skill when you want to research crypto tokens, deep-dive projects or monitor tokens.

Data & Research

notebooklm

3891
from openclaw/skills

Google NotebookLM 非官方 Python API 的 OpenClaw Skill。支持内容生成(播客、视频、幻灯片、测验、思维导图等)、文档管理和研究自动化。当用户需要使用 NotebookLM 生成音频概述、视频、学习材料或管理知识库时触发。

Data & Research

Market Sizing — TAM/SAM/SOM Calculator

3891
from openclaw/skills

Build defensible market sizing for any product, pitch deck, or business case. Top-down and bottom-up methodologies combined.

Data & Research

Data Analyst — AfrexAI ⚡📊

3891
from openclaw/skills

**Transform raw data into decisions. Not just charts — answers.**

Data & Research