Rebased schemas

This commit is contained in:
martinalong 2025-12-26 14:16:26 -08:00
commit e90c7945bc
No known key found for this signature in database

View file

@ -533,7 +533,8 @@ export const McpUiToolResultNotificationSchema = z.object({
/** /**
* @description Rich context about the host environment provided to Guest UIs. * @description Rich context about the host environment provided to Guest UIs.
*/ */
export const McpUiHostContextSchema = z.looseObject({ export const McpUiHostContextSchema = z
.object({
/** @description Metadata of the tool call that instantiated this App. */ /** @description Metadata of the tool call that instantiated this App. */
toolInfo: z toolInfo: z
.object({ .object({
@ -665,7 +666,8 @@ export const McpUiHostContextSchema = z.looseObject({
}) })
.optional() .optional()
.describe("Mobile safe area boundaries in pixels."), .describe("Mobile safe area boundaries in pixels."),
}); })
.passthrough();
/** /**
* @description Notification that host context has changed (Host -> Guest UI). * @description Notification that host context has changed (Host -> Guest UI).