unified-web-search

Pick the best source (Tavily, Web Search Plus, Browser, or local files) for a query, run the search, and return ranked results with provenance.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "unified-web-search" with this command: npx skills add iyeque/iyeque-unified-web-search

Unified Web Search Skill

Intelligently select the best search source, aggregate results, and return ranked answers with provenance.

Security

All search queries are validated and sanitized:

  • Maximum query length: 500 characters
  • Shell metacharacters are blocked to prevent command injection
  • Local file searches are restricted to workspace directories only

Tool API

unified_web_search

Perform a unified search across multiple sources.

  • Parameters:
    • query (string, required): The search query (alphanumeric, spaces, basic punctuation only)
    • sources (array of strings, optional): Array of sources to search. Defaults to ['tavily', 'web-search-plus', 'local']. Options: tavily, web-search-plus, browser, local.
    • max_results (integer, optional): Maximum number of results to return. Defaults to 5.

Usage:

# Search all sources
node skills/unified-web-search/index.js --query "my search term" --max_results 10

# Search specific sources
node skills/unified-web-search/index.js --query "AI developments" --sources '["tavily", "local"]' --max_results 10

# Search local files only
node skills/unified-web-search/index.js --query "meeting notes" --sources '["local"]'

Implementation

The skill aggregates results from multiple sources:

  • Tavily: AI-optimized web search with relevance scoring (requires TAVILY_API_KEY)
  • Web Search Plus: Broader web search coverage (placeholder for future integration)
  • Browser: Targeted site scraping (placeholder for future integration)
  • Local Files: Searches workspace directories for matching filenames

Results are scored and ranked by relevance, then returned with source attribution in JSON format.

Output Format

[
  {
    "source": "tavily",
    "title": "Article Title",
    "url": "https://example.com/article",
    "score": 0.95,
    "content": "Brief excerpt from the article..."
  },
  {
    "source": "local",
    "title": "/path/to/file.txt",
    "snippet": "Found query in filename: file.txt",
    "score": 0.5
  }
]

Environment Variables

Error Handling

  • Returns error if query is missing or empty
  • Returns error if query contains disallowed characters
  • Gracefully handles API failures (continues with other sources)
  • Warns if TAVILY_API_KEY is not set

Example

$ node skills/unified-web-search/index.js --query "climate change" --max_results 3
[
  {
    "source": "tavily",
    "title": "IPCC Climate Report 2024",
    "url": "https://ipcc.ch/report",
    "score": 0.92,
    "content": "The latest IPCC report shows..."
  },
  {
    "source": "tavily",
    "title": "Climate Action Tracker",
    "url": "https://climateactiontracker.org",
    "score": 0.87,
    "content": "Tracking government climate commitments..."
  },
  {
    "source": "local",
    "title": "/home/user/.openclaw/workspace/memory/climate-notes.md",
    "snippet": "Found query in filename: climate-notes.md",
    "score": 0.5
  }
]

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

九马免费声音克隆

九马AI语音克隆技能,TTS。使用九马AI API进行语音克隆和合成,支持在线音色选择或自定义音频参考。当用户需要语音克隆、语音合成或选择不同音色时使用此技能。Jiuma AI voice cloning skill, TTS. Utilize Jiuma AI API for voice cloning and...

Registry SourceRecently Updated
3770dddcn1
General

Strategy Backtest

Quantitative strategy backtesting—implement, run, and tune trading rules on historical data; performance metrics (CAGR, max drawdown, Sharpe, win rate) and s...

Registry SourceRecently Updated
General

Cursor2api Skill Clawhub

Manage and deploy cursor2api to convert Cursor IDE AI conversations into Anthropic/OpenAI API formats, including token refresh and uninstallation.

Registry SourceRecently Updated
20600xcjl
General

OpenClaw Cost Guardian

OpenClaw Cost Guardian - 智能成本监控与优化助手。实时监控Token消耗、智能切换模型、成本预警预警、使用优化建议。 帮助用户将OpenClaw使用成本降低30-70%,解决"月薪两万养不起龙虾"的痛点。 关键词:成本控制、token监控、模型优化、省钱

Registry SourceRecently Updated