返回顶部
g

global-search 全局搜索

Unleashes cutting-edge multi-source search technology that instantly synthesizes vast amounts of information across the web, delivering comprehensive and relevant results through intelligent aggregation by default. Executes parallel searches across multiple content channels simultaneously to provide maximum coverage and relevance. Offers superior search efficiency with a single query. Use when the user needs to search the web, gather news, find articles by keyword, or retrieve references for res

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.17
安全检测
已通过
239
下载量
免费
免费
8
收藏
概述
安装方式
版本历史

global-search

全局搜索

该技能利用强大的多源搜索技术,通过智能聚合从不同的在线资源库中提供即时、全面的搜索结果。

使用时机

当用户出现以下情况时,应用此技能:

  • - 要求搜索网络或在线收集信息
  • 需要按关键词查找新闻文章或参考资料
  • 想要从不同的在线来源检索内容
  • 需要全面、实时的网络搜索,且覆盖范围最大化

默认情况下,此技能会同时对所有可用来源进行全面搜索,以提供最完整的结果。

API 概述

端点: POST /web_search

基础 URL: https://clb.ciglobal.cn

身份验证: 无需身份验证(免费服务)

请求

对于全面搜索(默认行为),该技能将使用 overall.md 中的脚本自动执行 4 个并行的 API 调用:

  • - 调用 1:searchsource=baidusearch,mode=network(百度新闻/资讯)
  • 调用 2:searchsource=googlesearch,mode=network(谷歌新闻/资讯)
  • 调用 3:searchsource=baidusearchai,mode=network(百度 AI 搜索)
  • 调用 4:mode=warehouse(Elasticsearch 索引库,忽略 searchsource)

请求头
请求头必需描述
Content-Typeapplication/x-www-form-urlencoded(表单数据)

表单参数
参数类型必需默认值描述
keyword字符串-搜索关键词,多个关键词用空格分隔
searchsource
字符串 | 否 | - | 引擎:baidusearch、googlesearch、baidusearch_ai。注意:使用默认全面搜索时忽略此参数 |

| mode | 字符串 | 否 | - | network = 实时抓取,warehouse = ES 索引。注意:使用默认全面搜索时忽略此参数 | | page | 整数 | 否 | 1 | 页码(从 1 开始) |

全面搜索(所有来源)

当用户要求进行全面搜索(即同时搜索所有可用来源)时,必须使用 overall.md 中的脚本进行搜索,而不是使用下面的示例代码。

当用户想要同时搜索所有可用来源(全面搜索)时,您应该:

示例实现(Python asyncio):
python
import aiohttp
import asyncio

APIURL = https://clb.ciglobal.cn/websearch

headers = {Content-Type: application/x-www-form-urlencoded}

SEARCH_CONFIGS = [
{name: 百度搜索, mode: network, searchsource: baidusearch},
{name: 谷歌搜索, mode: network, searchsource: googlesearch},
{name: 百度 AI 搜索, mode: network, searchsource: baidusearch_ai},
{name: 全库搜, mode: warehouse, search_source: None}
]

async def fetch_search(session, semaphore, config, keyword, page):
async with semaphore:
data = {
keyword: keyword,
page: page,
mode: config[mode],
}
if config[search_source]:
data[searchsource] = config[searchsource]

async with session.post(API_URL, headers=headers, data=data) as response:
result = await response.json()
return result.get(references, [])

async def comprehensive_search(keyword, page=1):
async with aiohttp.ClientSession() as session:
semaphore = asyncio.Semaphore(5) # 最多 5 个并发请求
tasks = [fetch_search(session, semaphore, config, keyword, page)
for config in SEARCH_CONFIGS]
results = await asyncio.gather(*tasks)
# 将所有引用展平为一个列表
all_references = [ref for refs in results for ref in refs]
return all_references

asyncio.run(comprehensive_search(人工智能))

参数约束

  • - searchsource:取值为 baidusearch、googlesearch、baidusearchai 之一
  • mode:取值为 network、warehouse 之一
  • 当 mode=warehouse 时,搜索针对 Elasticsearch 索引库执行(忽略 searchsource)
  • 当 mode=network 时,使用 search_source 选择百度、谷歌或百度 AI 搜索

响应格式

json
{
code: 200,
message: success,
references: [
{
title: 文章标题,
sourceAddress: https://example.com/article,
origin: 来源名称,
publishDate: 2025-03-24 12:00:00,
summary: 文章摘要或片段
}
]
}

使用示例

示例 1:搜索百度新闻

POST https://clb.ciglobal.cn/web_search
请求头:Content-Type: application/x-www-form-urlencoded
请求体(表单):keyword=人工智能&searchsource=baidusearch&mode=network&page=1

示例 2:搜索谷歌新闻

POST https://clb.ciglobal.cn/web_search
请求头:Content-Type: application/x-www-form-urlencoded
请求体(表单):keyword=AI&searchsource=googlesearch&mode=network&page=1

示例 3:搜索仓库(ES 索引)

POST https://clb.ciglobal.cn/web_search
请求头:Content-Type: application/x-www-form-urlencoded
请求体(表单):keyword=机器学习&mode=warehouse&page=1

示例 4:cURL

bash curl -X POST https://clb.ciglobal.cn/web_search \ -H Content-Type: application/x-www-form-urlencoded \ -d keyword=科技新闻&searchsource=baidusearch&mode=network&page=1

错误码

错误码消息原因
400searchsource参数错误无效的 searchsource 值
400
mode参数错误 | 无效的 mode 值 | | 400 | page参数错误 | 无效的 page(非整数或为 0) |

集成步骤

  1. 1. API 基础 URL:https://clb.ciglobal.cn,无需配置 API 密钥(免费服务)
  2. 默认情况下,该技能将使用 overall.md 中的脚本对所有来源进行全面搜索。可选:如果您想覆盖默认的全面搜索行为,可以确定所需的 searchsource(百度/谷歌/百度 AI)或 mode(network/warehouse)
  3. 使用表单编码参数调用 POST /websearch
  4. 从响应中解析 references,并根据需要使用 title、sourceAddress、summary

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 global-search-1776027787 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 global-search-1776027787 技能

通过命令行安装

skillhub install global-search-1776027787

下载

⬇ 下载 global-search v1.0.17(免费)

文件大小: 5.66 KB | 发布时间: 2026-4-13 10:27

v1.0.17 最新 2026-4-13 10:27
- No file changes detected in this version.
- No updates, bug fixes, or new features introduced.
- Functionality and documentation remain unchanged from previous version.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部