remove_label_from_note
Remove a label from a note in NotesKeep to update its organization and categorization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | ID of the note | |
| labelId | Yes | ID of the label to remove |
Implementation Reference
- src/index.ts:415-434 (handler)The handler function for the remove_label_from_note tool, which sends a DELETE request to the API.
async ({ noteId, labelId }) => { try { await apiRequest(`/api/notes/${noteId}/labels?labelId=${labelId}`, { method: "DELETE", }); return { content: [{ type: "text", text: `Label ${labelId} removed from note ${noteId} successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error removing label from note: ${error}` }], isError: true }; - src/index.ts:409-414 (registration)Registration of the remove_label_from_note tool with its input schema using zod.
server.tool( "remove_label_from_note", { noteId: z.number().describe("ID of the note"), labelId: z.number().describe("ID of the label to remove"), },