name: tavily-search description: Web search using Tavily's LLM-optimized API. Returns relevant results with content snippets, scores, and metadata. homepage: https://tavily.com metadata: {"openclaw":{"emoji":"🔍","requires":{"bins":["node"],"env":["TAVILY_API_KEY"]},"primaryEnv":"TAVILY_API_KEY"}}
Search the web and get relevant results optimized for LLM consumption.
Get your API key at https://tavily.com and add to your OpenClaw config:
小蔥技能站7w4.net每天更新,海量AI技能等你發現。
{
"skills": {
"entries": {
"tavily-search": {
"enabled": true,
"apiKey": "tvly-YOUR_API_KEY_HERE"
}
}
}
}
Or set the environment variable:
export TAVILY_API_KEY="tvly-YOUR_API_KEY_HERE"
node {baseDir}/scripts/search.mjs "query"
node {baseDir}/scripts/search.mjs "query" -n 10
node {baseDir}/scripts/search.mjs "query" --deep
node {baseDir}/scripts/search.mjs "query" --topic news
# Basic search
node {baseDir}/scripts/search.mjs "python async patterns"
# With more results
node {baseDir}/scripts/search.mjs "React hooks tutorial" -n 10
# Advanced search
node {baseDir}/scripts/search.mjs "machine learning" --deep
# News search
node {baseDir}/scripts/search.mjs "AI news" --topic news
# Domain-filtered search
node {baseDir}/scripts/search.mjs "Python docs" --include-domains docs.python.org
| Option | Description | Default |
|---|---|---|
-n <count> |
Number of results (1-20) | 10 |
--depth <mode> |
Search depth: ultra-fast, fast, basic, advanced |
basic |
--topic <topic> |
Topic: general or news |
general |
--time-range <range> |
Time range: day, week, month, year |
- |
--include-domains <domains> |
Comma-separated domains to include | - |
--exclude-domains <domains> |
Comma-separated domains to exclude | - |
--raw-content |
Include full page content | false |
--json |
Output raw JSON | false |
| Depth | Latency | Relevance | Use Case |
|---|---|---|---|
ultra-fast |
Lowest | Lower | Real-time chat, autocomplete |
fast |
Low | Good | Need chunks but latency matters |
basic |
Medium | High | General-purpose, balanced |
advanced |
Higher | Highest | Precision matters, research |
--include-domains to focus on trusted sources--time-range for recent informationscore (0-1) to get highest relevance results整體質量較好,搜尋功能完整且易於上手。文件清晰詳細,引數選項豐富實用,支援深度搜索和精準過濾。程式碼執行穩定,錯誤提示友好,能正確展示搜尋結果和相關性評分。美中不足的是缺少示例檔案,配置方式略顯單一,不夠開箱即用。適合對網路搜尋有較高要求、願意配置 API 的使用者使用。