Tavily Search Tool
Tavily provides AI-optimized web search, content extraction, and website crawling capabilities for your agents.Installation
Environment Variables
Quick Start
1
Simple Usage
2
With Configuration
Adjust agent instructions, tool options, and provider settings for production — see the Configuration section below.
Using Tavily Directly
You can also use the Tavily SDK directly with AI SDK’sgenerateText:
Tool Options
tavilySearch
tavilyExtract
Extract content from specific URLs:tavilyCrawl
Crawl websites starting from a base URL:tavilyMap
Map website structure:Examples
Research Agent
News Agent
Content Extraction Agent
Response Format
Search Response
Extract Response
Crawl Response
Best Practices
Guidelines
Guidelines
- Use appropriate search depth: Use
basicfor quick searches,advancedfor comprehensive research - Filter by domain: Use
includeDomainsto focus on authoritative sources - Time-sensitive queries: Use
timeRangefor news or recent information - Rate limiting: Tavily has rate limits; implement appropriate delays for batch operations
- Error handling: Always handle potential API errors gracefully
Pricing
Tavily offers:- Free tier: 1,000 searches/month
- Paid plans: Higher limits and advanced features
Related
Tavily CLI Usage
Command-line interface for Tavily
Tools Registry
Overview of all available tools
Exa Search
Alternative semantic search tool

