delete-room-subscription-settings
Remove subscription settings for a specific user and room in Liveblocks. This tool ensures proper management of room-based subscriptions by deleting unnecessary or outdated settings.
Instructions
Delete a Liveblocks room's subscription settings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| userId | Yes |
Implementation Reference
- src/server.ts:623-638 (registration)Registers the 'delete-room-subscription-settings' tool using server.tool, including inline schema and handler function.server.tool( "delete-room-subscription-settings", `Delete a Liveblocks room's subscription settings`, { roomId: z.string(), userId: z.string(), }, async ({ roomId, userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoomSubscriptionSettings( { roomId, userId }, { signal: extra.signal } ) ); } );
- src/server.ts:630-637 (handler)The handler function executes the tool logic by calling the Liveblocks API to delete room subscription settings for a user.async ({ roomId, userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoomSubscriptionSettings( { roomId, userId }, { signal: extra.signal } ) ); }
- src/server.ts:626-629 (schema)Zod schema defining input parameters: roomId (string) and userId (string).{ roomId: z.string(), userId: z.string(), },