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:
json
{
"skills": {
"entries": {
"tavily-search": {
"enabled": true,
"apiKey": "tvly-YOUR_API_KEY_HERE"
}
}
}
}
Or set the environment variable:
bash
export TAVILY_API_KEY="tvly-YOUR_API_KEY_HERE"
bash
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
bash
# 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
OptionDescriptionDefault-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-contentInclude full page contentfalse--jsonOutput raw JSONfalse
DepthLatencyRelevanceUse Caseultra-fastLowestLowerReal-time chat, autocompletefastLowGoodNeed chunks but latency mattersbasicMediumHighGeneral-purpose, balancedadvancedHigherHighestPrecision matters, research
--include-domains to focus on trusted sources--time-range for recent informationscore (0-1) to get highest relevance results