✨
简介
Baidu web search
原始描述
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
通过你的 Agent 添加
安装目录:baidu-search/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
Claude Code~/.claude/skills/baidu-web-search-10179/
Codex CLI~/.codex/skills/baidu-web-search-10179/
DeepSeek Harness~/.agents/skills/baidu-web-search-10179/
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
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" } }
Baidu Search
Search the web via Baidu AI Search API.
Usage
python3 skills/baidu-search/scripts/search.py '<JSON>'
Request Parameters
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
SearchFilter
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)
Date Range Format
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 |
SearchFilter
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)
Date Range Format
| 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) |
Examples
# 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}]
}'
Current Status
# 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.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。