get-inbox-notification
Retrieve a specific notification from the Liveblocks inbox by providing user ID and notification ID.
Instructions
Get a Liveblocks inbox notification
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | ||
| inboxNotificationId | Yes |
Implementation Reference
- src/server.ts:688-695 (handler)The handler function for the 'get-inbox-notification' tool. It calls the Liveblocks client's getInboxNotification method via callLiveblocksApi utility.async ({ userId, inboxNotificationId }, extra) => { return await callLiveblocksApi( getLiveblocks().getInboxNotification( { userId, inboxNotificationId }, { signal: extra.signal } ) ); }
- src/server.ts:684-687 (schema)Input schema for the tool using Zod, requiring userId and inboxNotificationId.{ userId: z.string(), inboxNotificationId: z.string(), },
- src/server.ts:681-696 (registration)Registration of the 'get-inbox-notification' tool on the McpServer instance.server.tool( "get-inbox-notification", "Get a Liveblocks inbox notification", { userId: z.string(), inboxNotificationId: z.string(), }, async ({ userId, inboxNotificationId }, extra) => { return await callLiveblocksApi( getLiveblocks().getInboxNotification( { userId, inboxNotificationId }, { signal: extra.signal } ) ); } );