tavily-search
by @quenfly
Tavily AI search API integration for OpenClaw. Provides web search functionality with AI-powered summarization optimized for RAG and question answering. Use...
clawhub install tavily-search-quantπ About This Skill
name: tavily-search description: Tavily AI search API integration for OpenClaw. Provides web search functionality with AI-powered summarization optimized for RAG and question answering. Use when you need web search and the default web_search tool is not configured or you prefer Tavily's search results.
Tavily Search
Tavily Search is a specialized AI search API designed for LLMs and RAG applications. It provides:
Configuration
Before using, you need to configure your Tavily API key:
1. Get your API key from https://tavily.com/
2. Set it in your environment: export TAVILY_API_KEY=your_api_key_here
3. Or add it to OpenClaw config at tools.tavily.apiKey
Core Capabilities
1. Basic Search (tavily_search)
Search the web with optional depth control and topic filtering.Parameters:
query (required): Search query stringmax_results (optional, default 5): Number of results (1-10)search_depth (optional): basic or deep (default basic)topic (optional): general or news (default general)days (optional): Time range in days back from current date2. Search with Date Range (tavily_search_date_range)
Search with specific start and end dates.Parameters:
query (required): Search query stringstart_date (required): YYYY-MM-DDend_date (required): YYYY-MM-DDmax_results (optional, default 5)search_depth (optional): basic or deep3. Q&A Search (tavily_answer)
Get a direct AI answer to your question with citations.Parameters:
query (required): Question to answermax_results (optional, default 5)search_depth (optional): basic or deep4. Extract Content (tavily_extract)
Extract clean, readable content from one or more URLs.Parameters:
urls (required): Array of URLs to extractUsage Example
# Search for recent news about OpenClaw
python scripts/tavily_search.py "openclaw github" --days 1 --max_results 5
Output Format
All search commands return JSON with:
results: Array of search results with title, content, url, scoreanswer: AI-generated answer (for answer mode)response_time: Query response timescripts/
| Script | Purpose |
|--------|---------|
| tavily_cli.py | Main CLI interface for all Tavily search operations |
| tavily_api.py | Python API client module |
references/
| File | Purpose |
|------|---------|
| api_docs.md | Tavily API documentation reference |
βοΈ Configuration
Before using, you need to configure your Tavily API key:
1. Get your API key from https://tavily.com/
2. Set it in your environment: export TAVILY_API_KEY=your_api_key_here
3. Or add it to OpenClaw config at tools.tavily.apiKey