delete-room
Remove a dedicated Liveblocks collaboration room by specifying its unique room ID, ensuring efficient resource management and cleanup.
Instructions
Delete a Liveblocks room
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes |
Implementation Reference
- src/server.ts:138-142 (handler)Handler function that executes the delete-room tool logic by calling the Liveblocks SDK's deleteRoom method wrapped in callLiveblocksApi.async ({ roomId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoom(roomId, { signal: extra.signal }) ); }
- src/server.ts:135-137 (schema)Input schema for the delete-room tool, requiring a roomId string.{ roomId: z.string(), },
- src/server.ts:132-143 (registration)Registration of the delete-room tool using McpServer's tool method, including name, description, schema, and handler.server.tool( "delete-room", "Delete a Liveblocks room", { roomId: z.string(), }, async ({ roomId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoom(roomId, { signal: extra.signal }) ); } );