delete-all-inbox-notifications
Clear all inbox notifications for a specific user in Liveblocks to manage notification clutter and maintain a clean workspace.
Instructions
Delete all Liveblocks inbox notifications
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes |
Implementation Reference
- src/server.ts:748-755 (handler)The handler function for the "delete-all-inbox-notifications" tool. It invokes the Liveblocks SDK's deleteAllInboxNotifications method via callLiveblocksApi to delete all inbox notifications for the given userId.
async ({ userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteAllInboxNotifications( { userId }, { signal: extra.signal } ) ); } - src/server.ts:745-747 (schema)Input schema for the tool: requires a 'userId' parameter of type string.
{ userId: z.string(), }, - src/server.ts:742-756 (registration)Registration of the "delete-all-inbox-notifications" tool using McpServer.tool(), including name, description, input schema, and handler function.
server.tool( "delete-all-inbox-notifications", "Delete all Liveblocks inbox notifications", { userId: z.string(), }, async ({ userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteAllInboxNotifications( { userId }, { signal: extra.signal } ) ); } );