kibela_unlike_note
Remove your like from a Kibela note by providing its note ID.
Instructions
Unlike a note
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | Note ID |
Implementation Reference
- src/kibela.ts:149-159 (schema)Tool definition for 'kibela_unlike_note' with name, description, and inputSchema requiring noteId.
const UNLIKE_NOTE_TOOL: Tool = { name: "kibela_unlike_note", description: "Unlike a note", inputSchema: { type: "object", properties: { noteId: { type: "string", description: "Note ID" }, }, required: ["noteId"], }, }; - src/kibela.ts:616-645 (handler)Handler case for 'kibela_unlike_note': executes the UnlikeNote GraphQL mutation with the provided noteId and returns the result.
case "kibela_unlike_note": { const noteId = args.noteId as string; const operation = ` mutation UnlikeNote($input: UnlikeInput!) { unlike(input: $input) { clientMutationId likers(first: 10) { nodes { id account realName } } } } `; const response = await client.request<UnlikeResponse>(operation, { input: { noteId }, }); return { content: [ { type: "text", text: JSON.stringify(response.unlike, null, 2), }, ], }; } - src/kibela.ts:206-221 (registration)Tool registration: UNLIKE_NOTE_TOOL is listed in the tools array on line 217 and handled via switch case on line 616.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ SEARCH_NOTES_TOOL, GET_MY_NOTES_TOOL, GET_NOTE_CONTENT_TOOL, GET_GROUPS_TOOL, GET_GROUP_FOLDERS_TOOL, GET_GROUP_NOTES_TOOL, GET_FOLDER_NOTES_TOOL, GET_USERS_TOOL, LIKE_NOTE_TOOL, UNLIKE_NOTE_TOOL, GET_RECENTLY_VIEWED_NOTES_TOOL, GET_NOTE_FROM_PATH_TOOL, ], })); - src/types.ts:130-137 (helper)UnlikeResponse type definition used by the handler to type the GraphQL response.
export interface UnlikeResponse { unlike: { clientMutationId: string; likers: { nodes: KibelaUser[]; }; }; }