searching-web

binome-dev 的头像作者 binome-dev

使用Tavily API实时搜索网络信息。用于用户需要当前信息、想要搜索互联网或提出需要最新网络数据的问题时。

📖 中文导读:使用Tavily API实时搜索网络信息。用于用户需要当前信息、想要搜索互联网或提出需要最新网络数据的问题时。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: searching-web description: Searches the web using Tavily API for real-time information. Use when the user needs current information, wants to search the internet, or asks questions requiring up-to-date web data.

Web Search Tools

Tools for searching the web using the Tavily API.

Requirements

Set environment variable:

  • TAVILY_API_KEY: Your Tavily API key
result = await tavily_search(
    query="latest Python release",
    max_results=5
)

Response format

{
  "success": true,
  "data": {
    "results": [
      {
        "title": "Result Title",
        "url": "https://example.com",
        "content": "Snippet of the page content...",
        "score": 0.95
      }
    ],
    "query": "latest Python release"
  }
}

Advanced Options

result = await tavily_search(
    query="machine learning tutorials",
    max_results=10,
    search_depth="advanced",
    include_domains=["github.com", "arxiv.org"],
    exclude_domains=["pinterest.com"]
)

Parameters

Parameter Type Description
query str Search query (required)
max_results int Number of results (default: 5)
search_depth str "basic" or "advanced"
include_domains list Only search these domains
exclude_domains list Exclude these domains

When to Use

  • Finding current information not in training data
  • Researching recent events or news
  • Looking up documentation or tutorials
  • Fact-checking with web sources