Unified search interface across multiple search engines with result aggregation support.
bash
# Default search (Tavily API - fastest)
python3 {baseDir}/scripts/web_search.py --query "your search query"
# Specify engine
python3 {baseDir}/scripts/web_search.py --query "你的搜索内容" --engine baidu
python3 {baseDir}/scripts/web_search.py --query "search terms" --engine google
# Aggregate from multiple engines
python3 {baseDir}/scripts/web_search.py --query "关键词" --engine all
# Limit results
python3 {baseDir}/scripts/web_search.py --query "..." --max-results 10
EngineMethodBest ForSpeedtavilyAPIGeneral web search, fast results⚡ FastestgoogleBrowserComprehensive results, international🐢 SlowbingBrowserMicrosoft ecosystem, image search🐢 SlowbaiduBrowserChinese content, domestic sites🐢 SlowduckduckgoBrowserPrivacy-focused, no tracking🐢 SlowallAggregatedMaximum coverage, research🐌 Slowest
Fast API-based search, best for most use cases:
bash
python3 {baseDir}/scripts/web_search.py --query "..." --engine tavily
# With answer summary
python3 {baseDir}/scripts/web_search.py --query "..." --engine tavily --include-answer
# Markdown output
python3 {baseDir}/scripts/web_search.py --query "..." --engine tavily --format md
Requirements: TAVILY_API_KEY in environment or ~/.openclaw/.env
Use agent-browser to access search engines directly:
bash
# Google search
python3 {baseDir}/scripts/web_search.py --query "..." --engine google
# Baidu (for Chinese content)
python3 {baseDir}/scripts/web_search.py --query "关键词" --engine baidu
# Bing
python3 {baseDir}/scripts/web_search.py --query "..." --engine bing
# DuckDuckGo (privacy-focused)
python3 {baseDir}/scripts/web_search.py --query "..." --engine duckduckgo
Search multiple engines and combine results:
bash
python3 {baseDir}/scripts/web_search.py --query "..." --engine all --max-results 5
This searches Tavily + Google + Baidu and deduplicates results.
json
{
"query": "search query",
"engine": "tavily",
"results": [
{
"title": "Result Title",
"url": "https://example.com",
"snippet": "Brief description..."
}
]
}
--format md)#markdown
## Search Results: "query"
1. **[Title](url)**
Description...
2. **[Title](url)**
Description...
Use Tavily when:
Use Google when:
Use Baidu when:
Use DuckDuckGo when:
Use Aggregated when:
Determine engine preference
Run search bash
python3 {baseDir}/scripts/web_search.py --query "..." --engine tavily --max-results 5
If more depth needed
--max-results--engine allFor complex search tasks requiring interaction:
bash
# Open Google
agent-browser open "https://www.google.com/search?q=query"
# Open Baidu
agent-browser open "https://www.baidu.com/s?wd=关键词"
# Extract results
agent-browser snapshot -i
See Agent Browser skill for full browser automation capabilities.
--max-results small (3-5) by default to reduce token usage