get_note_labels
Retrieve labels associated with a specific note to organize and categorize your content within the NotesKeep MCP Server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | ID of the note |
Implementation Reference
- src/index.ts:472-497 (handler)The tool 'get_note_labels' is registered and implemented in src/index.ts. It takes a noteId as input, calls an API to fetch the labels for that note, and returns them as a JSON string.
server.tool( "get_note_labels", { noteId: z.number().describe("ID of the note"), }, async ({ noteId }) => { try { const data = await apiRequest(`/api/notes/${noteId}/labels`); return { content: [{ type: "text", text: JSON.stringify(data.labels, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error getting note labels: ${error}` }], isError: true }; } } );