delete_note_tag
Remove a specific tag from a note in GetNote, excluding system tags, by providing the note ID and tag ID.
Instructions
删除笔记的指定标签(系统标签不可删除)。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | 笔记 ID | |
| tag_id | Yes | 要删除的标签 ID |
Implementation Reference
- src/client.ts:140-146 (handler)The client-side method implementation that performs the network request to delete a note tag.
async deleteNoteTag(note_id: number | string, tag_id: string) { return this.request<DeleteNoteTagResp>( "POST", "/resource/note/tags/delete", undefined, { note_id, tag_id } ); - src/index.ts:214-225 (registration)The tool registration definition for 'delete_note_tag' in the MCP server index.
{ name: "delete_note_tag", description: "删除笔记的指定标签(系统标签不可删除)。", inputSchema: { type: "object" as const, properties: { note_id: { type: ["number", "string"], description: "笔记 ID", }, tag_id: { type: "string", - src/client.ts:460-462 (schema)The response interface for the delete_note_tag tool.
export interface DeleteNoteTagResp { note_id: number; tags: TagInfo[];