360 Secure SkillHub
360 安全技能中心

Tavily Search

通过 Node 脚本调用 Tavily API 完成 AI 优化的网络搜索与网页内容提取:搜索支持指定结果数量、深度检索、新闻主题过滤与时间范围;提取脚本按 URL 获取正文内容,需配置 TAVILY_API_KEY 并联网。

rajtejani61
rajtejani61
热度 75.98
最近更新 2026-05-11 17:26:03
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add tavily-web-search
Metadata
name
tavily-search
description
AI-optimized search and content extraction using Tavily API. Includes deep search, news filtering, and raw content extraction for LLM processing.
homepage
https://tavily.com
metadata
{"clawdbot":{"emoji":"🔍","requires":{"bins":["node"],"env":["TAVILY_API_KEY"]}}}

Tavily Search

Tavily is a search engine built specifically for AI agents (LLMs). This skill provides optimized search results and content extraction.

Prerequisites

  1. Node.js installed.
  2. Tavily API Key: Get one at tavily.com.
  3. Environment Variable: Set TAVILY_API_KEY in your environment.

Usage

Search

Perform an AI-optimized search.

node scripts/search.mjs "What are the latest developments in agentic AI?"

Options:

  • -n <number>: Number of results (default: 5, max: 20).
  • --deep: Use advanced search depth (more tokens, better results).
  • --topic <general|news>: Filter by topic (default: general).
  • --days <number>: For news topic, limit results to past N days.

Extract content from URL

node {baseDir}/scripts/extract.mjs "https://example.com/article"

Notes:

  • Needs TAVILY_API_KEY from https://tavily.com
  • Tavily is optimized for AI - returns clean, relevant snippets
  • Use --deep for complex research questions
  • Use --topic news for current events

Troubleshooting

  • Missing API Key: Ensure TAVILY_API_KEY is exported or set in your session.
  • Network Errors: Check your internet connection and API quota at Tavily.