Enhanced web search skill built on Tavily API with intelligent search strategies, user source preferences, and critical source handling.
ToolDescriptiontavily_searchStandard Tavily searchweb_seekerEnhanced search with all features
json
{
"apiKey": { "key1": "tvly-xxx1", "key2": "tvly-xxx2" }
}
Or env: TAVILY_API_KEY, TAVILY_API_KEY_2
javascript
// User preferences
const PREFERENCES = {
default_sites: ["wikipedia.org", "github.com"],
preferred_topics: {
tech: ["wikipedia.org", "github.com", "stackoverflow.com"],
news: ["reuters.com", "apnews.com", "bbc.com"],
finance: ["wsj.com", "bloomberg.com", "ft.com"],
academic: ["scholar.google.com", "arxiv.org"]
},
critical_sources: {
"官方": ["gov.cn", "moe.gov.cn"],
"财经": ["wsj.com", "bloomberg.com"],
"技术": ["github.com", "stackoverflow.com"]
}
};
ParameterTypeDefaultDescriptionquerystring-Search querymodestring"quick"quick/research/comparemax_resultsnumber5Results 1-20domainsarrayautoPreferred domainstime_rangestringautoday/week/month/yearoperatorsstring-Raw operatorsstrict_modebooleanfalseRequire preferred sources onlyexport_docbooleanfalseGenerate report
json
{
"original_query": "Iran oil news",
"intent": "news",
"domains_used": ["reuters.com", "bbc.com"],
"search_operator_applied": "site:reuters.com OR site:bbc.com",
"results_found": true,
"source_coverage": { "preferred": 3, "total": 10 },
"results": [...],
"summary": "..."
}
json
{
"results_found": false,
"not_found_conclusion": "在指定的核心信源中未搜索到...",
"suggestions": ["扩展搜索词", "放宽信源限制", "手动访问目标网站"]
}
bash
# Basic search
node seeker.js "AI news"
# Research mode with report
node seeker.js "machine learning" --mode research --export
# Strict mode (require preferred sources)
node seeker.js "python tutorial" --strict