
Tavily
- 27 installs
- 82 repo stars
- Updated August 2, 2026
- aaaaqwq/claude-code-skills
tavily is a Claude Code skill that wraps the Tavily API to give an agent AI-optimized web search, real-time information retrieval, and content extraction.
About
tavily wraps the Tavily API to give an agent AI-optimized web search and content extraction. A developer uses it when the agent needs to search the internet, fetch real-time data, or find the latest information. It runs a bundled tavily.sh script for basic search, deep search, and search-and-extract, reading its API key from pass.
- Wraps the Tavily API for AI-optimized web search from the agent
- Bundles a tavily.sh script for search, deep search, and extract
- Reads real-time information and extracts page content for LLM use
Tavily by the numbers
- 27 all-time installs (skills.sh)
- Ranked #1,244 of 2,719 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Aug 3, 2026 (Skillselion catalog sync)
tavily capabilities & compatibility
Requires a Tavily API key; usage limited by the Tavily plan
- Capabilities
- web search · content extraction · real time lookup
- Use cases
- web search · web scraping · research
- Pricing
- Bring your own API key
What tavily says it does
allowed-tools: Bash, Read, Write, Edit
./scripts/tavily.sh search <query> [max_results]
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill tavilyAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 27 |
|---|---|
| repo stars | ★ 82 |
| Last updated | August 2, 2026 |
| Repository | aaaaqwq/claude-code-skills ↗ |
What it does
Give an agent AI-optimized web search and content extraction via the Tavily API.
Who is it for?
Agents needing live web search and content extraction via Tavily
Skip if: Offline tasks or search without a Tavily API key
When should I use this skill?
The agent needs to search the internet, get real-time data, or find the latest information
What you get
AI-optimized web search results or extracted page content returned to the agent.
- AI-optimized search results or extracted content
By the numbers
- 3 script modes: search, deep search, extract
Files
Tavily AI 搜索
功能说明
此技能使用 Tavily API 提供 AI 优化的网络搜索能力:
- 智能搜索(AI 优化结果)
- 实时信息获取
- 搜索并提取内容
- 支持搜索深度和范围控制
使用方式
1. 基础搜索
./scripts/tavily.sh search <query> [max_results]2. 深度搜索(包含更多内容)
./scripts/tavily.sh search <query> --deep3. 搜索并提取
./scripts/tavily.sh extract <query> [max_results]API Key
存储在: pass show api/tavily
示例
搜索 Polymarket 信息
./scripts/tavily.sh search "Polymarket Fed interest rate decision 2026"搜索 AI 新闻
./scripts/tavily.sh search "latest AI news today" 5深度搜索
./scripts/tavily.sh search "Bitcoin price analysis" --deep注意事项
- Tavily 有使用限制(取决于套餐)
- 搜索结果经过 AI 优化,更适合 LLM 使用
- 支持实时数据获取
#!/bin/bash
# Tavily API 调用脚本
# API Key 从 pass 获取
set -e
API_KEY=$(pass show api/tavily 2>/dev/null | head -1)
BASE_URL="https://api.tavily.com"
if [ -z "$API_KEY" ]; then
echo "错误: 无法获取 Tavily API Key"
echo "请确保已存储: pass insert api/tavily"
exit 1
fi
# 搜索函数
search() {
local query="$1"
local max_results="${2:-5}"
local search_depth="basic"
# 检查是否有 --deep 参数
if [ "$3" == "--deep" ] || [ "$2" == "--deep" ]; then
search_depth="advanced"
if [ "$2" == "--deep" ]; then
max_results="${3:-5}"
fi
fi
echo "正在搜索: $query"
echo "深度: $search_depth"
echo "结果数: $max_results"
echo "---"
curl -s -X POST "${BASE_URL}/search" \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d "{
\"query\": \"$query\",
\"max_results\": $max_results,
\"search_depth\": \"$search_depth\",
\"include_answer\": true,
\"include_raw_content\": false
}" | jq '{
answer: .answer,
results: [.results[] | {
title: .title,
url: .url,
content: .content,
score: .score
}]
}'
}
# 搜索并提取内容
extract() {
local query="$1"
local max_results="${2:-5}"
echo "正在搜索并提取: $query"
echo "结果数: $max_results"
echo "---"
curl -s -X POST "${BASE_URL}/search" \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d "{
\"query\": \"$query\",
\"max_results\": $max_results,
\"search_depth\": \"advanced\",
\"include_answer\": true,
\"include_raw_content\": true
}" | jq '{
answer: .answer,
results: [.results[] | {
title: .title,
url: .url,
content: .content,
raw_content: .raw_content[0:500],
score: .score
}]
}'
}
# 帮助信息
help() {
echo "Tavily API 调用脚本"
echo ""
echo "用法:"
echo " $0 search <query> [max_results] 基础搜索"
echo " $0 search <query> --deep 深度搜索"
echo " $0 extract <query> [max_results] 搜索并提取内容"
echo ""
echo "示例:"
echo " $0 search \"AI news\" 5"
echo " $0 search \"Bitcoin price\" --deep"
echo " $0 extract \"Polymarket prediction\" 3"
}
# 主入口
case "$1" in
search)
search "$2" "$3" "$4"
;;
extract)
extract "$2" "$3"
;;
*)
help
;;
esac