unlike-note
Remove a like from a note.com article using its article ID. This tool helps manage article interactions by deleting previously added likes.
Instructions
記事のスキを削除する
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | 記事ID |
Implementation Reference
- src/tools/note-tools.ts:677-698 (handler)The complete implementation of the 'unlike-note' tool, registered via server.tool(). It includes the input schema (noteId), description, and the handler function that authenticates, sends a DELETE request to `/v3/notes/${noteId}/likes` API endpoint to remove the like (ski), and returns success or error response.server.tool( "unlike-note", "記事のスキを削除する", { noteId: z.string().describe("記事ID"), }, async ({ noteId }) => { try { if (!hasAuth()) { return createAuthErrorResponse(); } await noteApiRequest(`/v3/notes/${noteId}/likes`, "DELETE", {}, true); return createSuccessResponse({ message: "スキを削除しました" }); } catch (error) { return handleApiError(error, "スキ削除"); } } );