tavily-search
Search the web with LLM-optimized results via the Tavily CLI. Use this skill when the user wants to search the web, find articles, look up information, get recent news, discover sources, or says "search for", "find me", "look up", "what's the latest on", "find articles about", or needs current information from the internet. Returns relevant results with content snippets, relevance scores, and metadata — optimized for LLM consumption. Supports domain filtering, time ranges, and multiple search depths.
让 Agent 搜索网页并带回可核查的来源
通过 Tavily 命令行工具搜索网页,支持按域名和时间范围筛选。适合查近期信息、技术资料和对比来源。
- 使用前准备
- 需要安装可用的 Tavily CLI。第三方服务可能有登录、配额和费用要求,以它当前的服务说明为准;安装 Skill 本身不包含这些额度。
- 可以这样提问
- 查找这个开源库最近的官方升级说明,只搜索官方站点和仓库,列出发布日期、原文链接,以及对当前版本有影响的变化。
- 怎么检查结果
- 打开原始链接核对日期和上下文。搜索摘要可能不完整,涉及版本兼容性或价格时应以来源原文为准。
仅记录已同意可选统计的用户事件。浏览按账号、Skill 与上海自然日去重;下载按账号、Skill、版本与上海自然日去重,统计仅表示客户端成功交付安装包,不保证包已保存到磁盘。安装仅在客户端成功完成 Skill 写入后记录,并按账号与 Skill 去重 90 天;撤回同意会清理个人去重记录,重新开启后再次安装可能再次计数。“本周”指最近 7 个上海自然日。收藏为当前总数。
Skill 步骤
--- name: tavily-search description: | Search the web with LLM-optimized results via the Tavily CLI. Use this skill when the user wants to search the web, find articles, look up information, get recent news, discover sources, or says "search for", "find me", "look up", "what's the latest on", "find articles about", or needs current information from the internet. Returns relevant results with content snippets, relevance scores, and metadata — optimized for LLM consumption. Supports domain filtering, time ranges, and multiple search depths. allowed-tools: Bash(tvly *) --- # tavily search Web search returning LLM-optimized results with content snippets and relevance scores. ## Before running Run search directly when `tvly` is available. Search supports capped keyless access, so do not look for an API key or authenticate before the first request. If `tvly` is missing, follow the [tavily-cli setup](../tavily-cli/SKILL.md#setup) before retrying. If the keyless cap is reached in an interactive session, run `tvly login` to open browser OAuth, then retry the original search once. In an unattended environment, report the cap and authentication options instead of starting an interactive flow. Do not start a second login immediately after guided setup has completed. ## When to use - You need to find information on any topic - You don't have a specific URL yet - First step in the [workflow](../tavily-cli/SKILL.md): **search** → extract → map → crawl → research ## Quick start ```bash # 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 the JSON response to a 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-content`** when you need full page text (saves a separate extract call). - **Use `--include-domains`** to focus on trusted sources. - **Use `--time-range`** for recent information. - **Verify identity-sensitive facts at the exact primary source.** For releases, versions, ownership, or similarly named projects, confirm the official repository or domain instead of trusting a generated answer or package-name match alone. - Read from stdin: `echo "query" | tvly search - --json` ## See also - [tavily-extract](../tavily-extract/SKILL.md) — extract content from specific URLs - [tavily-research](../tavily-research/SKILL.md) — comprehensive multi-source research
版本历史
已发布版本会持续保留,可用于校验和恢复。
Imported from tavily-ai/skills@ZIP 09d27b8d1a8ddc3c44b8f59c95f907a75fc90067bbe465658bdc26260294e8c4