create_topic
Create a new knowledge base in GetNote by specifying a name, optional description, and cover image URL to organize and manage notes effectively.
Instructions
创建新的知识库。⚠️ 限制:每天最多创建 50 个知识库,北京时间自然日 00:00 重置。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 知识库名称(必填) | |
| description | No | 知识库描述(可选) | |
| cover | No | 封面图片 URL(可选) |
Implementation Reference
- src/client.ts:239-245 (handler)The implementation of the createTopic method which performs the API request to create a new topic.
async createTopic(body: { name: string; description?: string; cover?: string }) { return this.request<CreateTopicResp>( "POST", "/resource/knowledge/create", undefined, body ); - src/index.ts:616-622 (handler)The MCP tool handler case for "create_topic" that invokes client.createTopic.
case "create_topic": { return client.createTopic({ name: input.name as string, description: input.description as string | undefined, cover: input.cover as string | undefined, }); } - src/index.ts:249-264 (registration)Registration of the "create_topic" tool with its schema definition.
{ name: "create_topic", description: "创建新的知识库。⚠️ 限制:每天最多创建 50 个知识库,北京时间自然日 00:00 重置。", inputSchema: { type: "object" as const, properties: { name: { type: "string", description: "知识库名称(必填)", }, description: { type: "string", description: "知识库描述(可选)", }, cover: { type: "string",