📖 baidu baike search — 技能工具
v1.1.0The Baidu Baike Component is a knowledge service tool designed to query authoritative encyclopedia explanations for various nouns. Its core function is given a specific "noun" (object, person, location, concept, event, etc.) provided by the user, it returns a standardized, detailed entry explanation sourced from Baidu Baike.
详细分析 ▾
运行时依赖
版本
- Added comprehensive usage instructions, including direct search and homonym resolution scenarios. - Documented all available API functions and workflows for querying and retrieving Baidu Baike entries. - Updated setup guidance, specifying the required BAIDU_API_KEY environment variable. - Expanded skill description for clarity on its purpose and capabilities.
安装命令
点击复制本土化适配说明
baidu baike search — 技能工具 安装说明: 安装命令:npx clawhub@latest install baidu-baike-data 支持国内镜像加速,使用 --registry https://cn.longxiaskill.com 参数可加速下载 该技能用于百度相关操作,可能需要相应的平台账号或API密钥
技能文档
Query encyclopedia entries from Baidu Baike.
Two Usage Scenarios
Scenario 1: Direct Search
Get default matching entry for a keyword.python3 scripts/baidu_baike.py --search_type=lemmaTitle --search_key="keyword"
Scenario 2: Homonym Resolution
When term has multiple entries, list them and select by ID.# List entries with same name python3 scripts/baidu_baike.py --search_type=lemmaList --search_key="keyword" --top_k=5
# Get specific entry by ID python3 scripts/baidu_baike.py --search_type=lemmaId --search_key="entry_id"
API
- LemmaList: List entries with same title
- LemmaContent: Get entry details by title or ID
Setup
export BAIDU_API_KEY="your_api_key"
Workflow
- Extract noun from query
- For ambiguous terms, call LemmaList first
- User selects entry from list
- Call LemmaContent with selected ID
- Return structured data