diff --git a/src/generated/schema.json b/src/generated/schema.json index 995eb4dd..5143214a 100644 --- a/src/generated/schema.json +++ b/src/generated/schema.json @@ -4047,7 +4047,6 @@ } } }, - "required": ["resourceUri"], "additionalProperties": false }, "McpUiToolResultNotification": { diff --git a/src/generated/schema.ts b/src/generated/schema.ts index bc415e51..bd94075e 100644 --- a/src/generated/schema.ts +++ b/src/generated/schema.ts @@ -484,12 +484,12 @@ export const McpUiToolVisibilitySchema = z */ export const McpUiToolMetaSchema = z.object({ /** - * URI of the UI resource to display for this tool. + * URI of the UI resource to display for this tool, if any. * This is converted to `_meta["ui/resourceUri"]`. * * @example "ui://weather/widget.html" */ - resourceUri: z.string(), + resourceUri: z.string().optional(), /** * @description Who can access this tool. Default: ["model", "app"] * - "model": Tool visible to and callable by the agent diff --git a/src/spec.types.ts b/src/spec.types.ts index 5b7135ba..a060bfa0 100644 --- a/src/spec.types.ts +++ b/src/spec.types.ts @@ -549,12 +549,12 @@ export type McpUiToolVisibility = "model" | "app"; */ export interface McpUiToolMeta { /** - * URI of the UI resource to display for this tool. + * URI of the UI resource to display for this tool, if any. * This is converted to `_meta["ui/resourceUri"]`. * * @example "ui://weather/widget.html" */ - resourceUri: string; + resourceUri?: string; /** * @description Who can access this tool. Default: ["model", "app"] * - "model": Tool visible to and callable by the agent