delete-comment
Remove unwanted or outdated comments from Liveblocks collaborative threads using room, thread, and comment identifiers.
Instructions
Delete a Liveblocks comment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| threadId | Yes | ||
| commentId | Yes |
Implementation Reference
- src/server.ts:523-530 (handler)The handler function for the 'delete-comment' tool, which calls the Liveblocks API to delete a comment in a specific room and thread.async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); }
- src/server.ts:518-522 (schema)Input schema for the 'delete-comment' tool, defining required string parameters: roomId, threadId, and commentId.{ roomId: z.string(), threadId: z.string(), commentId: z.string(), },
- src/server.ts:515-531 (registration)Registration of the 'delete-comment' tool on the MCP server using server.tool(), including name, description, schema, and inline handler.server.tool( "delete-comment", `Delete a Liveblocks comment`, { roomId: z.string(), threadId: z.string(), commentId: z.string(), }, async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); } );