like-note
Add a like to a specific note.com article using its ID to show appreciation or engagement with the content.
Instructions
記事にスキをする
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | 記事ID |
Implementation Reference
- src/tools/note-tools.ts:653-674 (handler)Full implementation of the 'like-note' tool: registers the tool name, input schema (noteId: string), description, and handler function. The handler checks authentication with hasAuth(), calls noteApiRequest POST to `/v3/notes/${noteId}/likes` to like the note, returns success message or error response.server.tool( "like-note", "記事にスキをする", { noteId: z.string().describe("記事ID"), }, async ({ noteId }) => { try { if (!hasAuth()) { return createAuthErrorResponse(); } await noteApiRequest(`/v3/notes/${noteId}/likes`, "POST", {}, true); return createSuccessResponse({ message: "スキをつけました" }); } catch (error) { return handleApiError(error, "スキ"); } } );
- src/tools/note-tools.ts:656-658 (schema)Zod schema for 'like-note' tool input: requires noteId as string (記事ID).{ noteId: z.string().describe("記事ID"), },
- src/tools/index.ts:18-18 (registration)Registers all note tools including 'like-note' by calling registerNoteTools(server).registerNoteTools(server);
- src/note-mcp-server-refactored.ts:41-41 (registration)Top-level registration call to registerAllTools(server), which includes note tools like 'like-note'.registerAllTools(server);