list_topics
Retrieve paginated knowledge base topics with statistics including note counts, files, bloggers, and live streams to organize content in GetNote.
Instructions
获取知识库列表(每页固定 20 条)。返回 topics[]、has_more、total。每个 topic 包含 id(alias id)、name、description、cover、stats(笔记数、文件数、博主数、直播数)等。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 页码,从 1 开始(默认 1) |
Implementation Reference
- src/client.ts:232-237 (handler)The handler function that executes the "list_topics" tool logic by making a request to the API.
async listTopics(params?: { page?: number; size?: number }) { return this.request<ListTopicsResp>("GET", "/resource/knowledge/list", { page: params?.page, size: params?.size, }); } - src/index.ts:611-615 (registration)The registration case in the tool switch handler that calls the listTopics client method.
case "list_topics": { return client.listTopics({ page: input.page as number | undefined, }); }