Security v1.0.1

baidu-baike

The Baidu Baike Component is a knowledge service tool designed to query authoritative encyclopedia explanations for...

baidu baike search 更新于 2026-11-23 1 浏览
下载 SKILL

技能说明

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.

使用场景

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

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/baidu-baike
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 22 kB
SKILL.md text/markdown
---
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
```bash
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
```bash
curl -XGET 'https://appbuilder.baidu.com/v2/baike/lemma/get_content?search_type=lemmaTitle&search_key=刘德华' \
-H 'Authorization: Bearer BAIDU_API_KEY'
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。