Skills 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.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/aysun168/tavily-skill-bak" ~/.claude/skills/openclaw-skills-tavily-search-20f70d && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/aysun168/tavily-skill-bak" ~/.openclaw/skills/openclaw-skills-tavily-search-20f70d && rm -rf "$T"
manifest:
skills/aysun168/tavily-skill-bak/SKILL.mdsource content
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
toolweb_fetch - No API key available → use
for specific URLsweb_fetch - Historical/archival data → use specialized archives
Setup
- Get a Tavily API key from https://tavily.com
- Set the API key in environment or config
Configuration
Set your Tavily API key in one of these ways:
Environment variable:
export TAVILY_API_KEY="your-api-key-here"
OpenClaw config:
Add to your
openclaw.json:
{ "tavily": { "apiKey": "your-api-key-here" } }
Usage Examples
Basic Search
# 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
# 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
# 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
: Search query string (required)query
: "basic" or "advanced" (default: "basic")search_depth
: Number of results (1-10, default: 5)max_results
: Include AI-generated answer (true/false)include_answer
: Include image URLs (true/false)include_images
: Include full page content (true/false)include_raw_content
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:
- Use
for specific URLsweb_fetch - Use
with Kimi API (if configured)web_search - Manual web browsing with
toolbrowser