Tavily Search
Tavily is a search engine built specifically for AI agents (LLMs). This skill provides optimized search results and content extraction.
Prerequisites
- Node.js installed.
- Tavily API Key: Get one at tavily.com.
- Environment Variable: Set
TAVILY_API_KEYin your environment.
Usage
Search
Perform an AI-optimized search.
node scripts/search.mjs "What are the latest developments in agentic AI?"
Options:
-n <number>: Number of results (default: 5, max: 20).--deep: Use advanced search depth (more tokens, better results).--topic <general|news>: Filter by topic (default: general).--days <number>: For news topic, limit results to past N days.
Extract content from URL
node {baseDir}/scripts/extract.mjs "https://example.com/article"
Notes:
- Needs
TAVILY_API_KEYfrom https://tavily.com - Tavily is optimized for AI - returns clean, relevant snippets
- Use
--deepfor complex research questions - Use
--topic newsfor current events
Troubleshooting
- Missing API Key: Ensure
TAVILY_API_KEYis exported or set in your session. - Network Errors: Check your internet connection and API quota at Tavily.