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

中文百科知识权威查询助手

baidu-baike · vv1.0.1
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
效率 安全 A 级 作者 jlpJavaWayUp 公开目录收录
310 下载 125 安装 753 收藏 13.8k 浏览

简介

基于百度官方AppBuilder API的中文百科查询工具,提供标准化词条释义及关联知识,助力快速获取权威中文知识。

原始描述

The 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.

通过你的 Agent 添加

安装目录:baidu-baike/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/baidu-baike/
Codex CLI~/.codex/skills/baidu-baike/
DeepSeek Harness~/.agents/skills/baidu-baike/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: baidu-baike description: The 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. homepage: https://baike.baidu.com/ metadata: { "openclaw": { "emoji": "📖", "requires": { "bins": ["curl"] } } }

Baidu Baike

This skill allows OpenClaw agents to search detailed entry explanations via Baidu Baike .

Setup

  1. API Key: Ensure the BAIDU_API_KEY environment variable is set with your valid API key.
  2. Environment: The API key should be available in the runtime environment.

API table

name path description
LemmaList /v2/baike/lemma/get_list_by_title Query the list of entries that are the same as this term, and the is_default field in the return represents the subject term
LemmaContent /v2/baike/lemma/get_content Query the entry explanation or detailed content of an entry based on the entry id or entry name, best to do so based on the entry ID

Workflow

  1. The skill only supports searching for detailed knowledge explanations of objectively existing things such as (things, people, place names, concepts, events), etc. Therefore, please extract such nouns before calling
  2. The script makes a GET request to the Baidu Baike Search API
  3. The API returns structured search results with lemma_id, desc, url, lemma summary, videos, relations and knowledge, if the "noun" is a well-known person or thing, the associated person or thing of this noun will be returned
  4. If the content queried based on the default term name is inaccurate, you can first query the term list by the LemmaList API, and then select the term ID that meets the requirements from the list to query the term content by LemmaContent API

APIS

LemmaList API

Parameters
  • lemma_title: The search entry name
  • top_k: Number of results to return (default: 5)
Example Usage
curl -XGET 'https://appbuilder.baidu.com/v2/baike/lemma/get_content?lemma_title=刘德华' \
-H 'Authorization: Bearer BAIDU_API_KEY'

LemmaContent API

Parameters
  • search_type: The type of search, optional values include: "lemmaTitle", "lemmaId"
  • search_key: The search key, either the entry name or entry ID
Example Usage
curl -XGET 'https://appbuilder.baidu.com/v2/baike/lemma/get_content?search_type=lemmaTitle&search_key=刘德华' \
-H 'Authorization: Bearer BAIDU_API_KEY'

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

content-mediaeducation-researchdocsapiproductivity

同类 Skill