update-room-id
Modify a room's ID in Liveblocks by specifying the current roomId and the newRoomId to update it accurately and maintain synchronization across the platform.
Instructions
Update a Liveblocks room's ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newRoomId | Yes | ||
| roomId | Yes |
Implementation Reference
- src/server.ts:152-159 (handler)The handler function that executes the tool logic by calling the Liveblocks API to update the room ID.async ({ roomId, newRoomId }, extra) => { return await callLiveblocksApi( getLiveblocks().updateRoomId( { currentRoomId: roomId, newRoomId }, { signal: extra.signal } ) ); }
- src/server.ts:148-151 (schema)Zod input schema defining parameters: roomId (string) and newRoomId (string).{ roomId: z.string(), newRoomId: z.string(), },
- src/server.ts:145-160 (registration)Registration of the 'update-room-id' tool on the MCP server, including name, description, schema, and handler.server.tool( "update-room-id", "Update a Liveblocks room's ID", { roomId: z.string(), newRoomId: z.string(), }, async ({ roomId, newRoomId }, extra) => { return await callLiveblocksApi( getLiveblocks().updateRoomId( { currentRoomId: roomId, newRoomId }, { signal: extra.signal } ) ); } );