Unified search interface across multiple search engines with result aggregation support.
# 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
| Engine | Method | Best For | Speed |
|---|---|---|---|
| -------- | -------- | ---------- | ------- |
| tavily | API | General web search, fast results | ⚡ Fastest |
| Browser | Comprehensive results, international | 🐢 Slow | |
| bing | Browser | Microsoft ecosystem, image search | 🐢 Slow |
| baidu | Browser | Chinese content, domestic sites | 🐢 Slow |
| duckduckgo | Browser | Privacy-focused, no tracking | 🐢 Slow |
| all | Aggregated | Maximum coverage, research | 🐌 Slowest |
Fast API-based search, best for most use cases:
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:
# 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:
python3 {baseDir}/scripts/web_search.py --query "..." --engine all --max-results 5
This searches Tavily + Google + Baidu and deduplicates results.
{
"query": "search query",
"engine": "tavily",
"results": [
{
"title": "Result Title",
"url": "https://example.com",
"snippet": "Brief description..."
}
]
}
--format md)## 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:
```bash
python3 {baseDir}/scripts/web_search.py --query "..." --engine tavily --max-results 5
```
--max-results--engine allFor complex search tasks requiring interaction:
# 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共 1 个版本