list_topic_notes
Retrieve notes from a knowledge base with paginated results, enabling organized access to content collections.
Instructions
获取指定知识库内的笔记列表(每页 20 条)。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic_id | Yes | 知识库 ID | |
| page | No | 页码,从 1 开始(默认 1) |
Implementation Reference
- src/client.ts:248-254 (handler)The handler function that executes the API request for listing topic notes.
async listTopicNotes(params: { topic_id: string; page?: number }) { return this.request<ListTopicNotesResp>( "GET", "/resource/knowledge/notes", { topic_id: params.topic_id, page: params.page } ); } - src/index.ts:271-280 (registration)Registration of the list_topic_notes tool within the MCP server setup.
{ name: "list_topic_notes", description: "获取指定知识库内的笔记列表(每页 20 条)。", inputSchema: { type: "object" as const, properties: { topic_id: { type: "string", description: "知识库 ID", }, - src/client.ts:522-525 (schema)Response interface definition for listTopicNotes.
export interface ListTopicNotesResp { notes: TopicNoteItem[]; has_more: boolean; total: number;