ui/notifications/tool-input* (singular to match inputSchema)

This commit is contained in:
Olivier Chafik 2025-11-21 14:03:20 +00:00
commit f2766edb40
No known key found for this signature in database
2 changed files with 16 additions and 16 deletions

View file

@ -120,7 +120,7 @@ export class AppHost extends Protocol<Request, Notification, Result> {
sendToolInput(params: McpUiToolInputNotification["params"]) {
return this.notification(<McpUiToolInputNotification>{
method: "ui/notifications/tool-inputs",
method: "ui/notifications/tool-input",
params,
});
}

View file

@ -75,7 +75,7 @@ export type McpUiSizeChangeNotification = z.infer<
>;
export const McpUiToolInputNotificationSchema = z.object({
method: z.literal("ui/notifications/tool-inputs"),
method: z.literal("ui/notifications/tool-input"),
params: z.object({
arguments: z.record(z.unknown()).optional(),
}),
@ -85,7 +85,7 @@ export type McpUiToolInputNotification = z.infer<
>;
export const McpUiToolInputPartialNotificationSchema = z.object({
method: z.literal("ui/notifications/tool-inputs-partial"),
method: z.literal("ui/notifications/tool-input-partial"),
params: z.object({
arguments: z.record(z.unknown()).optional(),
}),