微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🔍

隐私优先的实时网络搜索利器

Search Web · v1.0.0
效率 安全 A 级 作者 lokixshrishi 公开目录收录
1.2k 下载 0 安装 3.8k 收藏 38 浏览

简介

基于自托管 SearXNG 实例的隐私友好型网络搜索工具,为 AI Agent 提供实时互联网信息检索能力,避免依赖专有 API。

原始描述

Performs internet searches via a self-hosted SearXNG instance, returning recent, structured web results with titles and URLs.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/search-web/
其它 Agent解压到它自己的 skills 目录,目录名用 search-web

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

技能正文


name: search-web type: python description: "Search web using Google CSE. Returns Collection of JSON Notes with fields text, metadata.uri (alias: source_url), metadata.domain, format, char_count"

search-web

Search web using Google Custom Search Engine. Returns Collection of structured Notes with substantial page content.

Input

  • query: Query string (e.g., "weather forecast Berkeley CA October 2025")

Output

Success (status: "success"):

  • resource_id: Collection ID containing structured Notes, each with:
    • text: Keyword-filtered page content (up to ~8K chars per result — substantial extracted text, not brief snippets)
    • format: "html" (or "pdf" if GROBID-parsed)
    • metadata.uri: Full URL
    • metadata.domain: Domain name
    • char_count: Character count

Behavior

  • Fetches each URL, extracts text, scores paragraphs by keyword relevance, keeps high-signal content
  • For PDFs (when GROBID configured): returns full parsed text, not filtered
  • LLM relevance filter discards off-topic pages entirely
  • Results contain substantial text content — use extract/synthesize directly on the Collection
  • Requires GOOGLE_API_KEY and GOOGLE_CX environment variables

Content Structure

Each Note in the returned Collection has the following JSON structure:

{
  "text": "Substantial keyword-filtered page content...",
  "format": "html",
  "metadata": {
    "uri": "https://example.com/page",
    "domain": "example.com",
    "source_url": "https://example.com/page",
    "elapsed_ms": 250
  },
  "char_count": 5000
}

Important: All result data is in the Note's content field (a dict). Engine metadata (creation date, source tool, etc.) is separate and accessed via get_resource_metadata(), not via content['metadata'].

Key Principle

Results already contain substantial page content in the text field. Use extract/synthesize directly on the Collection. Only use fetch-text if you specifically need the complete unfiltered page content from a single URL.

Common Workflows

Direct synthesis (preferred):

{"type":"search-web","query":"transformers in AI","out":"$results"}
{"type":"synthesize","target":"$results","focus":"what are transformers","out":"$summary"}

Per-result extraction then synthesis:

{"type":"search-web","query":"climate change effects","out":"$results"}
{"type":"map","target":"$results","operation":"extract","instruction":"Extract key statistics and findings","out":"$findings"}
{"type":"synthesize","target":"$findings","focus":"summary of effects","out":"$report"}

Filter by domain then analyze:

{"type":"filter-structured","target":"$results","where":"metadata.domain == 'arxiv.org'","out":"$arxiv_results"}
{"type":"synthesize","target":"$arxiv_results","focus":"recent research","out":"$summary"}

Extract metadata:

{"type":"project","target":"$results","fields":["metadata.uri","metadata.domain","text"],"out":"$result_info"}

Planning Notes

  • Use metadata.uri in project operations for consistent access
  • Results contain substantial content — typically enough for extract/synthesize without re-fetching
  • For complete unfiltered page content from a specific URL, use fetch-text

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/bdambrosio/Cognitive_workbench

标签

web-searchprivacyself-hostedsearxngreal-time-dataopen-sourcelocal-tool

同类 Skill