Loading...
Loading...
Tavily AI search API integration via curl. Use this skill to perform live web search and RAG-style retrieval.
npx skill4agent add vm0-ai/vm0-skills tavilycurlOfficial documentation:https://docs.tavily.com/
TAVILY_API_KEYexport TAVILY_API_KEY="tvly-xxxxxxxxxxxxxxxx"Important: When usingin a command that pipes to another command, wrap the command containing$VARin$VAR. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.bash -c '...'bashbash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"' | jq '.results[] | {title, url}'
TAVILY_API_KEYPOSThttps://api.tavily.com/search/tmp/tavily_request.json{
"query": "2025 AI Trending",
"search_depth": "basic",
"max_results": 5
}bash -c 'curl -s -X POST "https://api.tavily.com/search" --header "Content-Type: application/json" --header "Authorization: Bearer ${TAVILY_API_KEY}" -d @/tmp/tavily_request.json'querysearch_depth"basic""advanced"max_results/tmp/tavily_request.json{
"query": "serverless SaaS pricing best practices",
"search_depth": "advanced",
"max_results": 8,
"include_answer": true,
"include_domains": ["docs.aws.amazon.com", "cloud.google.com"],
"exclude_domains": ["reddit.com", "twitter.com"],
"include_raw_content": false
}bash -c 'curl -s -X POST "https://api.tavily.com/search" --header "Content-Type: application/json" --header "Authorization: Bearer ${TAVILY_API_KEY}" -d @/tmp/tavily_request.json'include_answertrueanswerinclude_domainsexclude_domainsinclude_raw_contentfalse{
"answer": "Brief summary...",
"results": [
{
"title": "Article title",
"url": "https://example.com/article",
"content": "Snippet or extracted content...",
"score": 0.89
}
]
}answerresultstitleurlPOSThttps://api.tavily.com/searchContent-Typeapplication/jsonAuthorizationBearer {{ $env.TAVILY_API_KEY }}{
"query": "n8n self-hosted best practices",
"search_depth": "basic",
"max_results": 5
}advancedquery