从源直接安装技能的最快方式。
npx clawhub@latest install baidu-search
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 baidu-search。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
百度搜索技能是一个强大的工具,旨在弥合代理内部知识与实时网页之间的差距。通过利用百度 AI 搜索引擎,该技能可以对网页内容、新闻和技术资源进行深度探索。作为 Openclaw Skills 库的核心组件,它提供了对全球最大搜索索引之一的结构化访问,使其成为执行实时研究的代理的重要资产。
该技能专为需要代理获取最新信息、验证事实或从特定在线源提取数据的开发人员而构建。它处理了百度 API 的复杂性,为复杂查询提供简化接口,包括对富媒体过滤和新鲜度约束的支持。
要将此搜索功能集成到您的环境中,请按照以下步骤操作:
python3。export BAIDU_API_KEY='your_api_key_here'
python3 skills/baidu-search/scripts/search.py '{"query":"AI search trends"}'
百度搜索技能利用结构化的请求模式来细化搜索准确性。以下是 Openclaw Skills 中使用的配置分类:
| 参数 | 描述 | 有效选项 |
|---|---|---|
query |
搜索字符串 | 任何 UTF-8 字符串 |
edition |
结果密度 | standard, lite |
resource_type_filter |
内容类型 | web, video, image, aladdin |
search_recency_filter |
时间约束 | week, month, semiyear, year |
search_filter |
特定约束 | 站点匹配和页面时间范围 |
name: baidu-search
description: Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
metadata: { "openclaw": { "emoji": "???", "requires": { "bins": ["python3"], "env":["BAIDU_API_KEY"]},"primaryEnv":"BAIDU_API_KEY" } }
Search the web via Baidu AI Search API.
python3 skills/baidu-search/scripts/search.py '<JSON>'
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
| query | str | yes | - | Search query |
| edition | str | no | standard | standard (full) or lite (light) |
| resource_type_filter | list[obj] | no | web:20, others:0 | Resource types: web (max 50), video (max 10), image (max 30), aladdin (max 5) |
| search_filter | obj | no | - | Advanced filters (see below) |
| block_websites | list[str] | no | - | Sites to block, e.g. ["tieba.baidu.com"] |
| search_recency_filter | str | no | - | Time filter: week, month, semiyear, year |
| safe_search | bool | no | false | Enable strict content filtering |
| Param | Type | Description |
|---|---|---|
| match.site | list[str] | Limit search to specific sites, e.g. ["baike.baidu.com"] |
| range.pageTime | obj | Date range for page_time field (see below) |
Fixed date: YYYY-MM-DD Relative time (from current day): now-1w/d, now-1M/d, now-1y/d
| Operator | Meaning |
|---|---|
| gte | Greater or equal (start) |
| lte | Less or equal (end) |
# Basic search
python3 skills/baidu-search/scripts/search.py '{"query":"人工智能"}'
# Filter by time and site
python3 skills/baidu-search/scripts/search.py '{
"query":"最新新闻",
"search_recency_filter":"week",
"search_filter":{"match":{"site":["news.baidu.com"]}}
}'
# Resource type filter
python3 skills/baidu-search/scripts/search.py '{
"query":"旅游景点",
"resource_type_filter":[{"type":"web","top_k":20},{"type":"video","top_k":5}]
}'
Fully functional.
输出速度飙升六倍,月之暗面正式上线 Kimi 2.7 Code 高速版大模型
如何撰写冬至放假通知?一份轻松愉快的企业通知范文供你参考!
多分辨率测试:Vera 1.1 不同参数下画质与耗时对比
腾讯投了林俊旸1.4亿,前千问负责人创业,估值135亿
Martial Arts Comedy Verbal Guidance
小米路由器下载时一直显示登录网络是什么原因(小米路由器下载时出现登录网络问题的解决方法有哪些)