Web search powered by Tavily API, optimized for AI agent consumption with structured, relevant results.
Basic search (5 results):
python3 scripts/search.py "your query here"
With options:
# Fewer results
python3 scripts/search.py "AI agents" --max-results 3
# AI-generated answer
python3 scripts/search.py "what is OpenClaw" --answer
# Advanced search (deeper crawling)
python3 scripts/search.py "casino bonuses" --depth advanced
# Include images
python3 scripts/search.py "WordPress themes" --images
# Raw JSON output
python3 scripts/search.py "n8n automation" --json
--max-results N: Number of results (1-10, default 5)--depth: Search depthbasic (default): Fast, good for most queriesadvanced: Deeper crawling, more comprehensive--answer: Include AI-generated answer summary--images: Include relevant image URLs--json: Output raw JSON instead of formatted textFormatted output includes:
JSON output provides full Tavily API response for programmatic use.
The script looks for the Tavily API key in:
workspace/secrets/tavily_api_key (OpenClaw workspace)secrets/tavily_api_key (relative to current directory)TAVILY_API_KEY environment variableCurrent key is stored at: workspace/secrets/tavily_api_key
Research task:
python3 scripts/search.py "WordPress plugin security best practices 2026" --max-results 5 --answer
Quick fact check:
python3 scripts/search.py "OpenClaw GitHub repository" --max-results 3
Competitive analysis:
python3 scripts/search.py "top casino affiliate sites" --depth advanced --max-results 10
News monitoring:
python3 scripts/search.py "AI agent frameworks January 2026" --answer
--answer is useful for summarization tasks--depth advanced for comprehensive research (uses more API credits)--json output is useful for parsing and processing results programmatically共 1 个版本