Skills tavily-search
Web search using Tavily's LLM-optimized API. Returns relevant results with content snippets, scores, and metadata.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/15914355527/liang-tavily-search-v2" ~/.claude/skills/openclaw-skills-tavily-search && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/15914355527/liang-tavily-search-v2" ~/.openclaw/skills/openclaw-skills-tavily-search && rm -rf "$T"
manifest:
skills/15914355527/liang-tavily-search-v2/SKILL.mdsource content
Tavily Search
Search the web and get relevant results optimized for LLM consumption.
Authentication
Get your API key at https://tavily.com and add to your OpenClaw config:
{ "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"
Quick Start
Using the Script
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
Examples
# 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
Options
| Option | Description | Default |
|---|---|---|
| Number of results (1-20) | 10 |
| Search depth: , , , | |
| Topic: or | |
| Time range: , , , | - |
| Comma-separated domains to include | - |
| Comma-separated domains to exclude | - |
| Include full page content | false |
| Output raw JSON | false |
Search Depth
| Depth | Latency | Relevance | Use Case |
|---|---|---|---|
| Lowest | Lower | Real-time chat, autocomplete |
| Low | Good | Need chunks but latency matters |
| Medium | High | General-purpose, balanced |
| Higher | Highest | Precision matters, research |
Tips
- Keep queries under 400 characters - Think search query, not prompt
- Break complex queries into sub-queries - Better results than one massive query
- Use
to focus on trusted sources--include-domains - Use
for recent information--time-range - Filter by
(0-1) to get highest relevance resultsscore