Agent Skills › tavily-ai/skills › tavily-search

tavily-search

GitHub

通过Tavily CLI执行网络搜索,获取LLM优化的搜索结果、摘要及元数据。支持关键词查询、新闻检索、域名过滤及时间范围限制,适用于查找信息、获取最新资讯或发现来源。

skills/tavily-search/SKILL.md tavily-ai/skills

触发场景

用户要求搜索网页或查找信息 用户询问最新新闻或特定主题的最新动态

安装

npx skills add tavily-ai/skills --skill tavily-search -g -y
更多选项

不安装直接使用

npx skills use tavily-ai/skills@tavily-search

指定 Agent (Claude Code)

npx skills add tavily-ai/skills --skill tavily-search -a claude-code -g -y

安装 repo 全部 skill

npx skills add tavily-ai/skills --all -g -y

预览 repo 内 skill

npx skills add tavily-ai/skills --list

SKILL.md

Frontmatter
{
    "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.\n",
    "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 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: 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 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

版本历史

  • 778122e 当前 2026-09-09 08:45

    优化了前置运行指引,优先采用免密钥(keyless)模式访问,移除强制安装步骤,并更新了认证失败时的处理逻辑。

  • ea5e820 2026-07-25 07:40

同 Skill 集合

skills/tasks/tavily-entity/SKILL.md
skills/tavily-best-practices/SKILL.md
skills/tavily-cli/SKILL.md
skills/tavily-dynamic-search/SKILL.md
skills/tavily-extract/SKILL.md
skills/tavily-map/SKILL.md
skills/tavily-research/SKILL.md
skills/core/tavily-search/SKILL.md
skills/tasks/tavily-list/SKILL.md
skills/tasks/tavily-monitor/SKILL.md
skills/tasks/tavily-research/SKILL.md
skills/tavily-crawl/SKILL.md

元信息

文件数
0
版本
778122e
Hash
be3974d5
收录时间
2026-07-25 07:40

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-18 15:27
浙ICP备14020137号-1