tavily-search
作者: tavily-ai
基于LLM优化的网页搜索结果,包含内容片段和相关性评分。支持四种搜索深度(极速、快速、基础、高级),可配置最多20条结果,并支持域名过滤和时间范围限制。返回结构化JSON输出,包含内容片段、相关性评分和针对LLM优化的元数据。提供新闻和金融主题的专用搜索模式,可选AI生成答案和完整页面内容提取。集成至...
npx skills add https://github.com/tavily-ai/skills --skill tavily-searchtavily search
Web search returning LLM-optimized results with content snippets and relevance scores.
Before running any command
If tvly is not found on PATH, install it first:
curl -fsSL https://cli.tavily.com/install.sh | bash && tvly login
Do not skip this step or fall back to other tools.
See tavily-cli for alternative install methods and auth options.
When to use
- You need to find information on any topic
- You don't have a specific URL yet
- First step in the workflow: search → extract → map → crawl → research
Quick start
# Basic search
tvly search "your query" --json
# Advanced search with more results
tvly search "quantum computing" --depth advanced --max-results 10 --json
# Recent news
tvly search "AI news" --time-range week --topic news --json
# Domain-filtered
tvly search "SEC filings" --include-domains sec.gov,reuters.com --json
# Include full page content in results
tvly search "react hooks tutorial" --include-raw-content --max-results 3 --json
Options
| Option | Description |
|---|---|
--depth | ultra-fast, fast, basic (default), advanced |
--max-results | Max results, 0-20 (default: 5) |
--topic | general (default), news, finance |
--time-range | day, week, month, year |
--start-date | Results after date (YYYY-MM-DD) |
--end-date | Results before date (YYYY-MM-DD) |
--include-domains | Comma-separated domains to include |
--exclude-domains | Comma-separated domains to exclude |
--country | Boost results from country |
--include-answer | Include AI answer (basic or advanced) |
--include-raw-content | Include full page content (markdown or text) |
--include-images | Include image results |
--include-image-descriptions | Include AI image descriptions |
--chunks-per-source | Chunks per source (advanced/fast depth only) |
-o, --output | Save output to file |
--json | Structured JSON output |
Search depth
| Depth | Speed | Relevance | Best for |
|---|---|---|---|
ultra-fast | Fastest | Lower | Real-time chat, autocomplete |
fast | Fast | Good | Need chunks, latency matters |
basic | Medium | High | General-purpose (default) |
advanced | Slower | Highest | Precision, specific facts |
Tips
- Keep queries under 400 characters — think search query, not prompt.
- Break complex queries into sub-queries for better results.
- Use
--include-raw-contentwhen you need full page text (saves a separate extract call). - Use
--include-domainsto focus on trusted sources. - Use
--time-rangefor recent information. - Read from stdin:
echo "query" | tvly search - --json
See also
- tavily-extract — extract content from specific URLs
- tavily-research — comprehensive multi-source research
来自 tavily-ai 的更多技能
crawl
tavily-ai
提取网站内容并保存为markdown文件,以便离线访问和分析。支持可配置的爬取深度(1-5层)、广度限制和页面上限,以平衡覆盖范围与性能。通过正则表达式路径过滤,聚焦特定部分并排除无关内容。提供两种模式:全页提取用于数据收集,或基于自然语言指令的语义分块,将结果输入LLM上下文。附带Map API用于URL...
official
extract
tavily-ai
使用Tavily的提取API从特定URL中提取干净内容。每次请求最多支持20个URL,可选基于查询的重新排序以聚焦相关内容块。两种提取模式:基础模式用于快速文本提取,高级模式用于JavaScript渲染页面和结构化数据。首次运行时通过浏览器自动进行OAuth认证,或在设置中手动配置API密钥。返回markdown或纯文本格式,可选包含图片URL,超时时间可配置至多60秒。
official
research
tavily-ai
针对任意主题进行综合研究,自动收集来源、分析并生成引用。通过多源网络研究并附带明确引用,适用于对比分析、时事追踪、市场调研及详细报告。提供三种模型选项:mini用于针对性单主题研究(约30秒),pro用于全面多角度分析(约60-120秒),auto通过API自动检测复杂度。通过Tavily MCP服务器的OAuth进行身份验证,支持基于浏览器的自动登录...
official
search
tavily-ai
基于LLM优化的网页搜索,具备相关性评分与灵活筛选功能。支持四种搜索深度模式(极速、快速、基础、高级),可配置延迟与相关性权衡。包含域名过滤、时间范围限制、日期区间、国家加权及原始内容提取。返回结果含标题、URL、内容摘要及相关性评分;可选图片结果与网站图标。通过Tavily MCP服务器或API密钥配置实现自动OAuth认证;...
official
tavily-best-practices
tavily-ai
面向LLM的网页搜索API,支持实时数据访问、内容提取、站点爬取及AI驱动研究。五大核心方法:search()获取网页结果,extract()提取URL内容,crawl()进行全站提取,map()发现URL,research()实现端到端AI综合。提供Python和JavaScript SDK,支持异步客户端并行查询及可配置搜索深度(极速/快速/基础/高级)。crawl方法接受语义指令以聚焦提取内容...
official
tavily-cli
tavily-ai
通过Tavily CLI实现网页搜索、内容提取、站点爬取及深度研究。五种命令模式涵盖搜索、提取、URL发现、批量爬取及带引用的多源研究。所有命令支持JSON输出及文件保存,适用于结构化、智能体工作流。升级模式根据需求引导您从简单搜索逐步过渡到提取、映射、爬取乃至全面研究。需安装tavily-cli并通过tvly login进行API密钥认证。
official
tavily-crawl
tavily-ai
多页网站爬虫,具备语义过滤和Markdown导出功能。可控制深度和广度爬取整个网站部分;通过路径正则表达式、域名或自然语言指令过滤结果,聚焦所需内容。使用--output-dir参数将每个页面保存为本地Markdown文件,或返回结构化JSON供智能体处理。采用语义指令与分块提取,防止向LLM输入结果时上下文膨胀;支持全页提取用于离线文档下载。支持...
official
tavily-dynamic-search
tavily-ai
搜索网络、过滤结果并提取内容,使原始搜索数据永远不会进入您的上下文窗口。只有您精心整理的print()输出会返回。
official