返回顶部
t

tavily-search

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,604
下载量
0
收藏
概述
安装方式
版本历史

tavily-search

# Tavily Search Skill Use Tavily API for real-time web search and content extraction. ## When to Use ✅ **USE this skill when:** - "Search the web for [topic]" - "Find recent information about [subject]" - "Get current news about [topic]" - "Research [topic] online" - "Find up-to-date information" ## When NOT to Use ❌ **DON'T use this skill when:** - Simple URL fetching → use `web_fetch` tool - No API key available → use `web_fetch` for specific URLs - Historical/archival data → use specialized archives ## Setup 1. Get a Tavily API key from https://tavily.com 2. Set the API key in environment or config ## Configuration Set your Tavily API key in one of these ways: ### Environment variable: ```bash export TAVILY_API_KEY="your-api-key-here" ``` ### OpenClaw config: Add to your `openclaw.json`: ```json { "tavily": { "apiKey": "your-api-key-here" } } ``` ## Usage Examples ### Basic Search ```bash # Search for a topic curl -X POST "https://api.tavily.com/search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TAVILY_API_KEY" \ -d '{ "query": "latest AI developments 2026", "search_depth": "basic", "max_results": 5 }' | jq . ``` ### Research Query ```bash # Get detailed research results curl -X POST "https://api.tavily.com/search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TAVILY_API_KEY" \ -d '{ "query": "climate change impact on agriculture 2026", "search_depth": "advanced", "max_results": 10, "include_answer": true, "include_images": false }' | jq . ``` ### News Search ```bash # Search for recent news curl -X POST "https://api.tavily.com/search" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TAVILY_API_KEY" \ -d '{ "query": "technology news today", "search_depth": "basic", "max_results": 5, "include_raw_content": false }' | jq . ``` ## API Parameters - `query`: Search query string (required) - `search_depth`: "basic" or "advanced" (default: "basic") - `max_results`: Number of results (1-10, default: 5) - `include_answer`: Include AI-generated answer (true/false) - `include_images`: Include image URLs (true/false) - `include_raw_content`: Include full page content (true/false) ## Error Handling - Check API key is set: `echo $TAVILY_API_KEY` - Test connection: Use the basic search example above - Rate limits: Tavily has usage limits based on your plan ## Alternatives If Tavily API is not available: 1. Use `web_fetch` for specific URLs 2. Use `web_search` with Kimi API (if configured) 3. Manual web browsing with `browser` tool

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tavily-skill-1776285622 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tavily-skill-1776285622 技能

通过命令行安装

skillhub install tavily-skill-1776285622

下载 Zip 包

⬇ 下载 tavily-search v1.0.0

文件大小: 2.75 KB | 发布时间: 2026-4-16 16:02

v1.0.0 最新 2026-4-16 16:02
Initial release of Tavily Search skill for real-time web search.

- Provides web search and content extraction via Tavily API.
- Includes setup and usage instructions, with curl and jq examples.
- Describes when to use versus alternatives like web_fetch or web_search.
- Outlines API parameters, error handling, and configuration methods.
- Requires a Tavily API key and system utilities (curl, jq).

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部