update_note
Modify existing plain text notes by updating titles, content, or tags in the GetNote platform. Provide at least one field to change while maintaining note structure.
Instructions
更新已有笔记的标题、内容或标签。⚠️ 仅支持 plain_text 类型笔记,链接笔记、图片笔记等暂不支持更新。至少需要传 title、content、tags 中的一个。tags 是替换操作,会覆盖原有标签。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | 笔记 ID(必填) | |
| title | No | 新标题(可选,不传则不更新) | |
| content | No | 新内容,Markdown 格式(可选,不传则不更新) | |
| tags | No | 新标签列表(可选,不传则保持原标签;传则替换原有标签) |
Implementation Reference
- src/client.ts:116-118 (handler)The core handler method in the client class that makes the API request for updating a note.
async updateNote(body: UpdateNoteReq) { return this.request<UpdateNoteResp>("POST", "/resource/note/update", undefined, body); } - src/index.ts:583-591 (handler)The tool handler logic which transforms input parameters and calls the client's updateNote method.
case "update_note": { const body: { note_id: number | string; title?: string; content?: string; tags?: string[] } = { note_id: input.note_id as number | string, }; if (input.title !== undefined) body.title = input.title as string; if (input.content !== undefined) body.content = input.content as string; if (input.tags !== undefined) body.tags = input.tags as string[]; return client.updateNote(body); } - src/client.ts:636-641 (schema)Type definition for the update_note request payload.
export interface UpdateNoteReq { note_id: number | string; title?: string; content?: string; tags?: string[]; } - src/index.ts:166-178 (registration)The MCP tool registration configuration for update_note, including the input schema.
name: "update_note", description: "更新已有笔记的标题、内容或标签。⚠️ 仅支持 plain_text 类型笔记,链接笔记、图片笔记等暂不支持更新。至少需要传 title、content、tags 中的一个。tags 是替换操作,会覆盖原有标签。", inputSchema: { type: "object" as const, properties: { note_id: { type: ["number", "string"], description: "笔记 ID(必填)", }, title: { type: "string", description: "新标题(可选,不传则不更新)",