@blade-hq/agent-react 2612.0.0-beta.67 → 2612.0.0-beta.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +2 -0
  2. package/dist/{chunk-MAFNMG2O.js → chunk-2DPLLZOU.js} +18 -13
  3. package/dist/{chunk-MAFNMG2O.js.map → chunk-2DPLLZOU.js.map} +1 -1
  4. package/dist/{chunk-N576N2XO.js → chunk-7MCGQH34.js} +12 -9
  5. package/dist/chunk-7MCGQH34.js.map +1 -0
  6. package/dist/{chunk-UC7SY3G5.js → chunk-HCW7SI5Q.js} +333 -269
  7. package/dist/chunk-HCW7SI5Q.js.map +1 -0
  8. package/dist/{chunk-X66C66OQ.js → chunk-J72ZLILV.js} +287 -67
  9. package/dist/chunk-J72ZLILV.js.map +1 -0
  10. package/dist/{chunk-HS5G33FO.js → chunk-QIR73CES.js} +1031 -8
  11. package/dist/chunk-QIR73CES.js.map +1 -0
  12. package/dist/{chunk-VSIUEXGV.js → chunk-WRIMPZPN.js} +12 -962
  13. package/dist/chunk-WRIMPZPN.js.map +1 -0
  14. package/dist/{chunk-XV6AO37F.js → chunk-XJ6ZA6LN.js} +9 -9
  15. package/dist/{chunk-U3RHQHI6.js → chunk-XP6T6SHZ.js} +48 -48
  16. package/dist/components/AccountConnectors.d.ts +1 -1
  17. package/dist/components/ManagedConnection.d.ts +0 -1
  18. package/dist/components/McpAppFrame.d.ts +17 -0
  19. package/dist/components/SessionPluginIcon.d.ts +1 -0
  20. package/dist/connectors.js +2 -2
  21. package/dist/index.js +7 -7
  22. package/dist/internal.d.ts +2 -0
  23. package/dist/internal.js +10 -8
  24. package/dist/internal.js.map +1 -1
  25. package/dist/questions.js +4 -5
  26. package/dist/questions.js.map +1 -1
  27. package/dist/rich-input.js +20 -20
  28. package/dist/style.full.css +1 -1
  29. package/dist/tool-details.js +4 -4
  30. package/node_modules/@modelcontextprotocol/ext-apps/LICENSE +216 -0
  31. package/node_modules/@modelcontextprotocol/ext-apps/README.md +284 -0
  32. package/node_modules/@modelcontextprotocol/ext-apps/dist/docs/patterns.d.ts +9 -0
  33. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.d.ts +1348 -0
  34. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.examples.d.ts +9 -0
  35. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.js +39 -0
  36. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.test.d.ts +1 -0
  37. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-with-deps.js +82 -0
  38. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.d.ts +1214 -0
  39. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.examples.d.ts +9 -0
  40. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.js +39 -0
  41. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.test.d.ts +1 -0
  42. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/constants.d.ts +65 -0
  43. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/events.d.ts +47 -0
  44. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/events.test.d.ts +1 -0
  45. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.d.ts +1047 -0
  46. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.json +6170 -0
  47. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.test.d.ts +41 -0
  48. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/interop-v1.test.d.ts +1 -0
  49. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/legacy-handlers.d.ts +66 -0
  50. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/legacy-handlers.test.d.ts +1 -0
  51. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.d.ts +126 -0
  52. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.examples.d.ts +9 -0
  53. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.test.d.ts +1 -0
  54. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.d.ts +37 -0
  55. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.examples.d.ts +6 -0
  56. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js +39 -0
  57. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/react-with-deps.js +82 -0
  58. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useApp.d.ts +115 -0
  59. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useApp.examples.d.ts +6 -0
  60. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useAutoResize.d.ts +54 -0
  61. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useAutoResize.examples.d.ts +6 -0
  62. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useDocumentTheme.d.ts +44 -0
  63. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useDocumentTheme.examples.d.ts +6 -0
  64. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useHostStyles.d.ts +113 -0
  65. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useHostStyles.examples.d.ts +6 -0
  66. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.d.ts +381 -0
  67. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.examples.d.ts +9 -0
  68. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.js +1 -0
  69. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.test.d.ts +1 -0
  70. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/spec.types.d.ts +698 -0
  71. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/standard-schema.d.ts +23 -0
  72. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/styles.d.ts +184 -0
  73. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/styles.examples.d.ts +9 -0
  74. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/types.d.ts +33 -0
  75. package/node_modules/@modelcontextprotocol/ext-apps/dist/src/wire-compat.test.d.ts +1 -0
  76. package/node_modules/@modelcontextprotocol/ext-apps/package.json +144 -0
  77. package/node_modules/@standard-schema/spec/LICENSE +21 -0
  78. package/node_modules/@standard-schema/spec/README.md +198 -0
  79. package/node_modules/@standard-schema/spec/dist/index.cjs +18 -0
  80. package/node_modules/@standard-schema/spec/dist/index.d.cts +119 -0
  81. package/node_modules/@standard-schema/spec/dist/index.d.ts +119 -0
  82. package/node_modules/@standard-schema/spec/dist/index.js +0 -0
  83. package/node_modules/@standard-schema/spec/package.json +52 -0
  84. package/package.json +6 -2
  85. package/dist/chunk-HS5G33FO.js.map +0 -1
  86. package/dist/chunk-N576N2XO.js.map +0 -1
  87. package/dist/chunk-UC7SY3G5.js.map +0 -1
  88. package/dist/chunk-VSIUEXGV.js.map +0 -1
  89. package/dist/chunk-X66C66OQ.js.map +0 -1
  90. /package/dist/{chunk-XV6AO37F.js.map → chunk-XJ6ZA6LN.js.map} +0 -0
  91. /package/dist/{chunk-U3RHQHI6.js.map → chunk-XP6T6SHZ.js.map} +0 -0
@@ -0,0 +1,1047 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * @description Color theme preference for the host environment.
4
+ */
5
+ export declare const McpUiThemeSchema: z.ZodUnion<readonly [z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>;
6
+ /**
7
+ * @description Display mode for UI presentation.
8
+ */
9
+ export declare const McpUiDisplayModeSchema: z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>;
10
+ /**
11
+ * @description CSS variable keys available to MCP apps for theming.
12
+ */
13
+ export declare const McpUiStyleVariableKeySchema: z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>;
14
+ /**
15
+ * @description Style variables for theming MCP apps.
16
+ *
17
+ * Individual style keys are optional - hosts may provide any subset of these values.
18
+ * Values are strings containing CSS values (colors, sizes, font stacks, etc.).
19
+ *
20
+ * Note: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`
21
+ * for compatibility with Zod schema generation. Both are functionally equivalent for validation.
22
+ */
23
+ export declare const McpUiStylesSchema: z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>, z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
24
+ /**
25
+ * @description Request to open an external URL in the host's default browser.
26
+ * @see {@link app!App.openLink `App.openLink`} for the method that sends this request
27
+ */
28
+ export declare const McpUiOpenLinkRequestSchema: z.ZodObject<{
29
+ method: z.ZodLiteral<"ui/open-link">;
30
+ params: z.ZodObject<{
31
+ url: z.ZodString;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>;
34
+ /**
35
+ * @description Result from opening a URL.
36
+ * @see {@link McpUiOpenLinkRequest `McpUiOpenLinkRequest`}
37
+ */
38
+ export declare const McpUiOpenLinkResultSchema: z.ZodObject<{
39
+ isError: z.ZodOptional<z.ZodBoolean>;
40
+ }, z.core.$loose>;
41
+ /**
42
+ * @description Result from a file download request.
43
+ * @see {@link McpUiDownloadFileRequest `McpUiDownloadFileRequest`}
44
+ */
45
+ export declare const McpUiDownloadFileResultSchema: z.ZodObject<{
46
+ isError: z.ZodOptional<z.ZodBoolean>;
47
+ }, z.core.$loose>;
48
+ /**
49
+ * @description Result from sending a message.
50
+ * @see {@link McpUiMessageRequest `McpUiMessageRequest`}
51
+ */
52
+ export declare const McpUiMessageResultSchema: z.ZodObject<{
53
+ isError: z.ZodOptional<z.ZodBoolean>;
54
+ }, z.core.$loose>;
55
+ /**
56
+ * @description Notification that the sandbox proxy iframe is ready to receive content.
57
+ * @internal
58
+ * @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx#sandbox-proxy
59
+ */
60
+ export declare const McpUiSandboxProxyReadyNotificationSchema: z.ZodObject<{
61
+ method: z.ZodLiteral<"ui/notifications/sandbox-proxy-ready">;
62
+ params: z.ZodObject<{}, z.core.$strip>;
63
+ }, z.core.$strip>;
64
+ /**
65
+ * @description Content Security Policy configuration for UI resources.
66
+ *
67
+ * Servers declare which origins their UI requires. Hosts use this to enforce appropriate CSP headers.
68
+ *
69
+ * > [!IMPORTANT]
70
+ * > MCP App HTML runs in a sandboxed iframe with no same-origin server.
71
+ * > **All** origins must be declared—including where your bundled JS/CSS is
72
+ * > served from (`localhost` in dev, your CDN in production).
73
+ */
74
+ export declare const McpUiResourceCspSchema: z.ZodObject<{
75
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
+ }, z.core.$strip>;
80
+ /**
81
+ * @description Sandbox permissions requested by the UI resource.
82
+ *
83
+ * Servers declare which browser capabilities their UI needs.
84
+ * Hosts MAY honor these by setting appropriate iframe `allow` attributes.
85
+ * Apps SHOULD NOT assume permissions are granted; use JS feature detection as fallback.
86
+ */
87
+ export declare const McpUiResourcePermissionsSchema: z.ZodObject<{
88
+ camera: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
89
+ microphone: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
90
+ geolocation: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
91
+ clipboardWrite: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
92
+ }, z.core.$strip>;
93
+ /**
94
+ * @description Notification of UI size changes (View -> Host).
95
+ * @see {@link app!App.sendSizeChanged `App.sendSizeChanged`} for the method to send this from View
96
+ */
97
+ export declare const McpUiSizeChangedNotificationSchema: z.ZodObject<{
98
+ method: z.ZodLiteral<"ui/notifications/size-changed">;
99
+ params: z.ZodObject<{
100
+ width: z.ZodOptional<z.ZodNumber>;
101
+ height: z.ZodOptional<z.ZodNumber>;
102
+ }, z.core.$strip>;
103
+ }, z.core.$strip>;
104
+ /**
105
+ * @description Notification containing complete tool arguments (Host -> View).
106
+ */
107
+ export declare const McpUiToolInputNotificationSchema: z.ZodObject<{
108
+ method: z.ZodLiteral<"ui/notifications/tool-input">;
109
+ params: z.ZodObject<{
110
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
111
+ }, z.core.$strip>;
112
+ }, z.core.$strip>;
113
+ /**
114
+ * @description Notification containing partial/streaming tool arguments (Host -> View).
115
+ */
116
+ export declare const McpUiToolInputPartialNotificationSchema: z.ZodObject<{
117
+ method: z.ZodLiteral<"ui/notifications/tool-input-partial">;
118
+ params: z.ZodObject<{
119
+ arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
120
+ }, z.core.$strip>;
121
+ }, z.core.$strip>;
122
+ /**
123
+ * @description Notification that tool execution was cancelled (Host -> View).
124
+ * Host MUST send this if tool execution was cancelled for any reason (user action,
125
+ * sampling error, classifier intervention, etc.).
126
+ */
127
+ export declare const McpUiToolCancelledNotificationSchema: z.ZodObject<{
128
+ method: z.ZodLiteral<"ui/notifications/tool-cancelled">;
129
+ params: z.ZodObject<{
130
+ reason: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strip>;
132
+ }, z.core.$strip>;
133
+ /**
134
+ * @description CSS blocks that can be injected by apps.
135
+ */
136
+ export declare const McpUiHostCssSchema: z.ZodObject<{
137
+ fonts: z.ZodOptional<z.ZodString>;
138
+ }, z.core.$strip>;
139
+ /**
140
+ * @description Style configuration for theming MCP apps.
141
+ */
142
+ export declare const McpUiHostStylesSchema: z.ZodObject<{
143
+ variables: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>, z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>>;
144
+ css: z.ZodOptional<z.ZodObject<{
145
+ fonts: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strip>>;
147
+ }, z.core.$strip>;
148
+ /**
149
+ * @description Request for graceful shutdown of the View (Host -> View).
150
+ * @see {@link app-bridge!AppBridge.teardownResource `AppBridge.teardownResource`} for the host method that sends this
151
+ */
152
+ export declare const McpUiResourceTeardownRequestSchema: z.ZodObject<{
153
+ method: z.ZodLiteral<"ui/resource-teardown">;
154
+ params: z.ZodObject<{}, z.core.$strip>;
155
+ }, z.core.$strip>;
156
+ /**
157
+ * @description Result from graceful shutdown request.
158
+ * @see {@link McpUiResourceTeardownRequest `McpUiResourceTeardownRequest`}
159
+ */
160
+ export declare const McpUiResourceTeardownResultSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
161
+ export declare const McpUiSupportedContentBlockModalitiesSchema: z.ZodObject<{
162
+ text: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
163
+ image: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
164
+ audio: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
165
+ resource: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
166
+ resourceLink: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
167
+ structuredContent: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
168
+ }, z.core.$strip>;
169
+ /**
170
+ * @description Notification for app-initiated teardown request (View -> Host).
171
+ * Views send this to request that the host tear them down. The host decides
172
+ * whether to proceed - if approved, the host will send
173
+ * `ui/resource-teardown` to allow the view to perform cleanup before being
174
+ * unmounted.
175
+ * @see {@link app.App.requestTeardown} for the app method that sends this
176
+ */
177
+ export declare const McpUiRequestTeardownNotificationSchema: z.ZodObject<{
178
+ method: z.ZodLiteral<"ui/notifications/request-teardown">;
179
+ params: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
180
+ }, z.core.$strip>;
181
+ /**
182
+ * @description Capabilities supported by the host application.
183
+ * @see {@link McpUiInitializeResult `McpUiInitializeResult`} for the initialization result that includes these capabilities
184
+ */
185
+ export declare const McpUiHostCapabilitiesSchema: z.ZodObject<{
186
+ experimental: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
187
+ openLinks: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
188
+ downloadFile: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
189
+ serverTools: z.ZodOptional<z.ZodObject<{
190
+ listChanged: z.ZodOptional<z.ZodBoolean>;
191
+ }, z.core.$strip>>;
192
+ serverResources: z.ZodOptional<z.ZodObject<{
193
+ listChanged: z.ZodOptional<z.ZodBoolean>;
194
+ }, z.core.$strip>>;
195
+ logging: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
196
+ sandbox: z.ZodOptional<z.ZodObject<{
197
+ permissions: z.ZodOptional<z.ZodObject<{
198
+ camera: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
199
+ microphone: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
200
+ geolocation: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
201
+ clipboardWrite: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
202
+ }, z.core.$strip>>;
203
+ csp: z.ZodOptional<z.ZodObject<{
204
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
207
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ }, z.core.$strip>>;
209
+ }, z.core.$strip>>;
210
+ updateModelContext: z.ZodOptional<z.ZodObject<{
211
+ text: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
212
+ image: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
213
+ audio: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
214
+ resource: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
215
+ resourceLink: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
216
+ structuredContent: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
217
+ }, z.core.$strip>>;
218
+ message: z.ZodOptional<z.ZodObject<{
219
+ text: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
220
+ image: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
221
+ audio: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
222
+ resource: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
223
+ resourceLink: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
224
+ structuredContent: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
225
+ }, z.core.$strip>>;
226
+ sampling: z.ZodOptional<z.ZodObject<{
227
+ tools: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
228
+ }, z.core.$strip>>;
229
+ }, z.core.$strip>;
230
+ /**
231
+ * @description Capabilities provided by the View ({@link app!App `App`}).
232
+ * @see {@link McpUiInitializeRequest `McpUiInitializeRequest`} for the initialization request that includes these capabilities
233
+ */
234
+ export declare const McpUiAppCapabilitiesSchema: z.ZodObject<{
235
+ experimental: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
236
+ tools: z.ZodOptional<z.ZodObject<{
237
+ listChanged: z.ZodOptional<z.ZodBoolean>;
238
+ }, z.core.$strip>>;
239
+ availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>>;
240
+ }, z.core.$strip>;
241
+ /**
242
+ * @description Notification that View has completed initialization (View -> Host).
243
+ * @see {@link app!App.connect `App.connect`} for the method that sends this notification
244
+ */
245
+ export declare const McpUiInitializedNotificationSchema: z.ZodObject<{
246
+ method: z.ZodLiteral<"ui/notifications/initialized">;
247
+ params: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
248
+ }, z.core.$strip>;
249
+ /**
250
+ * @description UI Resource metadata for security and rendering configuration.
251
+ */
252
+ export declare const McpUiResourceMetaSchema: z.ZodObject<{
253
+ csp: z.ZodOptional<z.ZodObject<{
254
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
255
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
256
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
257
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
+ }, z.core.$strip>>;
259
+ permissions: z.ZodOptional<z.ZodObject<{
260
+ camera: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
261
+ microphone: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
262
+ geolocation: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
263
+ clipboardWrite: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
264
+ }, z.core.$strip>>;
265
+ domain: z.ZodOptional<z.ZodString>;
266
+ prefersBorder: z.ZodOptional<z.ZodBoolean>;
267
+ }, z.core.$strip>;
268
+ /**
269
+ * @description Request to change the display mode of the UI.
270
+ * The host will respond with the actual display mode that was set,
271
+ * which may differ from the requested mode if not supported.
272
+ * @see {@link app!App.requestDisplayMode `App.requestDisplayMode`} for the method that sends this request
273
+ */
274
+ export declare const McpUiRequestDisplayModeRequestSchema: z.ZodObject<{
275
+ method: z.ZodLiteral<"ui/request-display-mode">;
276
+ params: z.ZodObject<{
277
+ mode: z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>;
278
+ }, z.core.$strip>;
279
+ }, z.core.$strip>;
280
+ /**
281
+ * @description Result from requesting a display mode change.
282
+ * @see {@link McpUiRequestDisplayModeRequest `McpUiRequestDisplayModeRequest`}
283
+ */
284
+ export declare const McpUiRequestDisplayModeResultSchema: z.ZodObject<{
285
+ mode: z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>;
286
+ }, z.core.$loose>;
287
+ /**
288
+ * @description Tool visibility scope - who can access the tool.
289
+ */
290
+ export declare const McpUiToolVisibilitySchema: z.ZodUnion<readonly [z.ZodLiteral<"model">, z.ZodLiteral<"app">]>;
291
+ /**
292
+ * @description UI-related metadata for tools.
293
+ */
294
+ export declare const McpUiToolMetaSchema: z.ZodObject<{
295
+ resourceUri: z.ZodOptional<z.ZodString>;
296
+ visibility: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"model">, z.ZodLiteral<"app">]>>>;
297
+ csp: z.ZodOptional<z.ZodNever>;
298
+ permissions: z.ZodOptional<z.ZodNever>;
299
+ }, z.core.$strip>;
300
+ /**
301
+ * @description MCP Apps capability settings advertised by clients to servers.
302
+ *
303
+ * Clients advertise these capabilities via the `extensions` field in their
304
+ * capabilities during MCP initialization. Servers can check for MCP Apps
305
+ * support using {@link server-helpers!getUiCapability}.
306
+ */
307
+ export declare const McpUiClientCapabilitiesSchema: z.ZodObject<{
308
+ mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
309
+ }, z.core.$strip>;
310
+ /**
311
+ * @description Request to download a file through the host.
312
+ *
313
+ * Sent from the View to the Host when the app wants to trigger a file download.
314
+ * Since MCP Apps run in sandboxed iframes where direct downloads are blocked,
315
+ * this provides a host-mediated mechanism for file exports.
316
+ * The host SHOULD show a confirmation dialog before initiating the download.
317
+ *
318
+ * @see {@link app!App.downloadFile `App.downloadFile`} for the method that sends this request
319
+ */
320
+ export declare const McpUiDownloadFileRequestSchema: z.ZodObject<{
321
+ method: z.ZodLiteral<"ui/download-file">;
322
+ params: z.ZodObject<{
323
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
324
+ type: z.ZodLiteral<"resource">;
325
+ resource: z.ZodUnion<readonly [z.ZodObject<{
326
+ uri: z.ZodString;
327
+ mimeType: z.ZodOptional<z.ZodString>;
328
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
329
+ text: z.ZodString;
330
+ }, z.core.$strip>, z.ZodObject<{
331
+ uri: z.ZodString;
332
+ mimeType: z.ZodOptional<z.ZodString>;
333
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
334
+ blob: z.ZodString;
335
+ }, z.core.$strip>]>;
336
+ annotations: z.ZodOptional<z.ZodObject<{
337
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
338
+ user: "user";
339
+ assistant: "assistant";
340
+ }>>>;
341
+ priority: z.ZodOptional<z.ZodNumber>;
342
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
343
+ }, z.core.$strip>>;
344
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ uri: z.ZodString;
347
+ description: z.ZodOptional<z.ZodString>;
348
+ mimeType: z.ZodOptional<z.ZodString>;
349
+ size: z.ZodOptional<z.ZodNumber>;
350
+ annotations: z.ZodOptional<z.ZodObject<{
351
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
352
+ user: "user";
353
+ assistant: "assistant";
354
+ }>>>;
355
+ priority: z.ZodOptional<z.ZodNumber>;
356
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
357
+ }, z.core.$strip>>;
358
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
359
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
360
+ src: z.ZodString;
361
+ mimeType: z.ZodOptional<z.ZodString>;
362
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
363
+ theme: z.ZodOptional<z.ZodEnum<{
364
+ light: "light";
365
+ dark: "dark";
366
+ }>>;
367
+ }, z.core.$strip>>>;
368
+ name: z.ZodString;
369
+ title: z.ZodOptional<z.ZodString>;
370
+ type: z.ZodLiteral<"resource_link">;
371
+ }, z.core.$strip>]>>;
372
+ }, z.core.$strip>;
373
+ }, z.core.$strip>;
374
+ /**
375
+ * @description Request to send a message to the host's chat interface.
376
+ * @see {@link app!App.sendMessage `App.sendMessage`} for the method that sends this request
377
+ */
378
+ export declare const McpUiMessageRequestSchema: z.ZodObject<{
379
+ method: z.ZodLiteral<"ui/message">;
380
+ params: z.ZodObject<{
381
+ role: z.ZodLiteral<"user">;
382
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
383
+ type: z.ZodLiteral<"text">;
384
+ text: z.ZodString;
385
+ annotations: z.ZodOptional<z.ZodObject<{
386
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
387
+ user: "user";
388
+ assistant: "assistant";
389
+ }>>>;
390
+ priority: z.ZodOptional<z.ZodNumber>;
391
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
392
+ }, z.core.$strip>>;
393
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
394
+ }, z.core.$strip>, z.ZodObject<{
395
+ type: z.ZodLiteral<"image">;
396
+ data: z.ZodString;
397
+ mimeType: z.ZodString;
398
+ annotations: z.ZodOptional<z.ZodObject<{
399
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
400
+ user: "user";
401
+ assistant: "assistant";
402
+ }>>>;
403
+ priority: z.ZodOptional<z.ZodNumber>;
404
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
405
+ }, z.core.$strip>>;
406
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
407
+ }, z.core.$strip>, z.ZodObject<{
408
+ type: z.ZodLiteral<"audio">;
409
+ data: z.ZodString;
410
+ mimeType: z.ZodString;
411
+ annotations: z.ZodOptional<z.ZodObject<{
412
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
413
+ user: "user";
414
+ assistant: "assistant";
415
+ }>>>;
416
+ priority: z.ZodOptional<z.ZodNumber>;
417
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
418
+ }, z.core.$strip>>;
419
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
+ }, z.core.$strip>, z.ZodObject<{
421
+ uri: z.ZodString;
422
+ description: z.ZodOptional<z.ZodString>;
423
+ mimeType: z.ZodOptional<z.ZodString>;
424
+ size: z.ZodOptional<z.ZodNumber>;
425
+ annotations: z.ZodOptional<z.ZodObject<{
426
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
427
+ user: "user";
428
+ assistant: "assistant";
429
+ }>>>;
430
+ priority: z.ZodOptional<z.ZodNumber>;
431
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
432
+ }, z.core.$strip>>;
433
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
434
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
435
+ src: z.ZodString;
436
+ mimeType: z.ZodOptional<z.ZodString>;
437
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
438
+ theme: z.ZodOptional<z.ZodEnum<{
439
+ light: "light";
440
+ dark: "dark";
441
+ }>>;
442
+ }, z.core.$strip>>>;
443
+ name: z.ZodString;
444
+ title: z.ZodOptional<z.ZodString>;
445
+ type: z.ZodLiteral<"resource_link">;
446
+ }, z.core.$strip>, z.ZodObject<{
447
+ type: z.ZodLiteral<"resource">;
448
+ resource: z.ZodUnion<readonly [z.ZodObject<{
449
+ uri: z.ZodString;
450
+ mimeType: z.ZodOptional<z.ZodString>;
451
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
452
+ text: z.ZodString;
453
+ }, z.core.$strip>, z.ZodObject<{
454
+ uri: z.ZodString;
455
+ mimeType: z.ZodOptional<z.ZodString>;
456
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
457
+ blob: z.ZodString;
458
+ }, z.core.$strip>]>;
459
+ annotations: z.ZodOptional<z.ZodObject<{
460
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
461
+ user: "user";
462
+ assistant: "assistant";
463
+ }>>>;
464
+ priority: z.ZodOptional<z.ZodNumber>;
465
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
466
+ }, z.core.$strip>>;
467
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
468
+ }, z.core.$strip>]>>;
469
+ }, z.core.$strip>;
470
+ }, z.core.$strip>;
471
+ /**
472
+ * @description Notification containing HTML resource for the sandbox proxy to load.
473
+ * @internal
474
+ * @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx#sandbox-proxy
475
+ */
476
+ export declare const McpUiSandboxResourceReadyNotificationSchema: z.ZodObject<{
477
+ method: z.ZodLiteral<"ui/notifications/sandbox-resource-ready">;
478
+ params: z.ZodObject<{
479
+ html: z.ZodString;
480
+ sandbox: z.ZodOptional<z.ZodString>;
481
+ csp: z.ZodOptional<z.ZodObject<{
482
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
483
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
484
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
485
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
486
+ }, z.core.$strip>>;
487
+ permissions: z.ZodOptional<z.ZodObject<{
488
+ camera: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
489
+ microphone: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
490
+ geolocation: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
491
+ clipboardWrite: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
492
+ }, z.core.$strip>>;
493
+ }, z.core.$strip>;
494
+ }, z.core.$strip>;
495
+ /**
496
+ * @description Notification containing tool execution result (Host -> View).
497
+ */
498
+ export declare const McpUiToolResultNotificationSchema: z.ZodObject<{
499
+ method: z.ZodLiteral<"ui/notifications/tool-result">;
500
+ params: z.ZodObject<{
501
+ _meta: z.ZodOptional<z.ZodObject<{
502
+ readonly "io.modelcontextprotocol/serverInfo": z.ZodCatch<z.ZodOptional<z.ZodObject<{
503
+ version: z.ZodString;
504
+ websiteUrl: z.ZodOptional<z.ZodString>;
505
+ description: z.ZodOptional<z.ZodString>;
506
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
507
+ src: z.ZodString;
508
+ mimeType: z.ZodOptional<z.ZodString>;
509
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
510
+ theme: z.ZodOptional<z.ZodEnum<{
511
+ light: "light";
512
+ dark: "dark";
513
+ }>>;
514
+ }, z.core.$strip>>>;
515
+ name: z.ZodString;
516
+ title: z.ZodOptional<z.ZodString>;
517
+ }, z.core.$strip>>>;
518
+ }, z.core.$loose>>;
519
+ content: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
520
+ type: z.ZodLiteral<"text">;
521
+ text: z.ZodString;
522
+ annotations: z.ZodOptional<z.ZodObject<{
523
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
524
+ user: "user";
525
+ assistant: "assistant";
526
+ }>>>;
527
+ priority: z.ZodOptional<z.ZodNumber>;
528
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
529
+ }, z.core.$strip>>;
530
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
531
+ }, z.core.$strip>, z.ZodObject<{
532
+ type: z.ZodLiteral<"image">;
533
+ data: z.ZodString;
534
+ mimeType: z.ZodString;
535
+ annotations: z.ZodOptional<z.ZodObject<{
536
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
537
+ user: "user";
538
+ assistant: "assistant";
539
+ }>>>;
540
+ priority: z.ZodOptional<z.ZodNumber>;
541
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
542
+ }, z.core.$strip>>;
543
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ type: z.ZodLiteral<"audio">;
546
+ data: z.ZodString;
547
+ mimeType: z.ZodString;
548
+ annotations: z.ZodOptional<z.ZodObject<{
549
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
550
+ user: "user";
551
+ assistant: "assistant";
552
+ }>>>;
553
+ priority: z.ZodOptional<z.ZodNumber>;
554
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
555
+ }, z.core.$strip>>;
556
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
557
+ }, z.core.$strip>, z.ZodObject<{
558
+ uri: z.ZodString;
559
+ description: z.ZodOptional<z.ZodString>;
560
+ mimeType: z.ZodOptional<z.ZodString>;
561
+ size: z.ZodOptional<z.ZodNumber>;
562
+ annotations: z.ZodOptional<z.ZodObject<{
563
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
564
+ user: "user";
565
+ assistant: "assistant";
566
+ }>>>;
567
+ priority: z.ZodOptional<z.ZodNumber>;
568
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
569
+ }, z.core.$strip>>;
570
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
571
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
572
+ src: z.ZodString;
573
+ mimeType: z.ZodOptional<z.ZodString>;
574
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
575
+ theme: z.ZodOptional<z.ZodEnum<{
576
+ light: "light";
577
+ dark: "dark";
578
+ }>>;
579
+ }, z.core.$strip>>>;
580
+ name: z.ZodString;
581
+ title: z.ZodOptional<z.ZodString>;
582
+ type: z.ZodLiteral<"resource_link">;
583
+ }, z.core.$strip>, z.ZodObject<{
584
+ type: z.ZodLiteral<"resource">;
585
+ resource: z.ZodUnion<readonly [z.ZodObject<{
586
+ uri: z.ZodString;
587
+ mimeType: z.ZodOptional<z.ZodString>;
588
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
589
+ text: z.ZodString;
590
+ }, z.core.$strip>, z.ZodObject<{
591
+ uri: z.ZodString;
592
+ mimeType: z.ZodOptional<z.ZodString>;
593
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
594
+ blob: z.ZodString;
595
+ }, z.core.$strip>]>;
596
+ annotations: z.ZodOptional<z.ZodObject<{
597
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
598
+ user: "user";
599
+ assistant: "assistant";
600
+ }>>>;
601
+ priority: z.ZodOptional<z.ZodNumber>;
602
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
603
+ }, z.core.$strip>>;
604
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
605
+ }, z.core.$strip>]>>>;
606
+ structuredContent: z.ZodOptional<z.ZodUnknown>;
607
+ isError: z.ZodOptional<z.ZodBoolean>;
608
+ }, z.core.$loose>;
609
+ }, z.core.$strip>;
610
+ /**
611
+ * @description Rich context about the host environment provided to views.
612
+ */
613
+ export declare const McpUiHostContextSchema: z.ZodObject<{
614
+ toolInfo: z.ZodOptional<z.ZodObject<{
615
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
616
+ tool: z.ZodObject<{
617
+ description: z.ZodOptional<z.ZodString>;
618
+ inputSchema: z.ZodObject<{
619
+ type: z.ZodLiteral<"object">;
620
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@modelcontextprotocol/client").JSONValue, import("@modelcontextprotocol/client").JSONValue, z.core.$ZodTypeInternals<import("@modelcontextprotocol/client").JSONValue, import("@modelcontextprotocol/client").JSONValue>>>>;
621
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
622
+ }, z.core.$catchall<z.ZodUnknown>>;
623
+ outputSchema: z.ZodOptional<z.ZodObject<{
624
+ $schema: z.ZodOptional<z.ZodString>;
625
+ }, z.core.$loose>>;
626
+ annotations: z.ZodOptional<z.ZodObject<{
627
+ title: z.ZodOptional<z.ZodString>;
628
+ readOnlyHint: z.ZodOptional<z.ZodBoolean>;
629
+ destructiveHint: z.ZodOptional<z.ZodBoolean>;
630
+ idempotentHint: z.ZodOptional<z.ZodBoolean>;
631
+ openWorldHint: z.ZodOptional<z.ZodBoolean>;
632
+ }, z.core.$strip>>;
633
+ execution: z.ZodOptional<z.ZodObject<{
634
+ taskSupport: z.ZodOptional<z.ZodEnum<{
635
+ optional: "optional";
636
+ required: "required";
637
+ forbidden: "forbidden";
638
+ }>>;
639
+ }, z.core.$strip>>;
640
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
641
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
642
+ src: z.ZodString;
643
+ mimeType: z.ZodOptional<z.ZodString>;
644
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
645
+ theme: z.ZodOptional<z.ZodEnum<{
646
+ light: "light";
647
+ dark: "dark";
648
+ }>>;
649
+ }, z.core.$strip>>>;
650
+ name: z.ZodString;
651
+ title: z.ZodOptional<z.ZodString>;
652
+ }, z.core.$strip>;
653
+ }, z.core.$strip>>;
654
+ theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
655
+ styles: z.ZodOptional<z.ZodObject<{
656
+ variables: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>, z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>>;
657
+ css: z.ZodOptional<z.ZodObject<{
658
+ fonts: z.ZodOptional<z.ZodString>;
659
+ }, z.core.$strip>>;
660
+ }, z.core.$strip>>;
661
+ displayMode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>;
662
+ availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>>;
663
+ containerDimensions: z.ZodOptional<z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
664
+ height: z.ZodNumber;
665
+ }, z.core.$strip>, z.ZodObject<{
666
+ maxHeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodUndefined]>>;
667
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
668
+ width: z.ZodNumber;
669
+ }, z.core.$strip>, z.ZodObject<{
670
+ maxWidth: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodUndefined]>>;
671
+ }, z.core.$strip>]>>>;
672
+ locale: z.ZodOptional<z.ZodString>;
673
+ timeZone: z.ZodOptional<z.ZodString>;
674
+ userAgent: z.ZodOptional<z.ZodString>;
675
+ platform: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"web">, z.ZodLiteral<"desktop">, z.ZodLiteral<"mobile">]>>;
676
+ deviceCapabilities: z.ZodOptional<z.ZodObject<{
677
+ touch: z.ZodOptional<z.ZodBoolean>;
678
+ hover: z.ZodOptional<z.ZodBoolean>;
679
+ }, z.core.$strip>>;
680
+ safeAreaInsets: z.ZodOptional<z.ZodObject<{
681
+ top: z.ZodNumber;
682
+ right: z.ZodNumber;
683
+ bottom: z.ZodNumber;
684
+ left: z.ZodNumber;
685
+ }, z.core.$strip>>;
686
+ }, z.core.$loose>;
687
+ /**
688
+ * @description Notification that host context has changed (Host -> View).
689
+ * @see {@link McpUiHostContext `McpUiHostContext`} for the full context structure
690
+ */
691
+ export declare const McpUiHostContextChangedNotificationSchema: z.ZodObject<{
692
+ method: z.ZodLiteral<"ui/notifications/host-context-changed">;
693
+ params: z.ZodObject<{
694
+ toolInfo: z.ZodOptional<z.ZodObject<{
695
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
696
+ tool: z.ZodObject<{
697
+ description: z.ZodOptional<z.ZodString>;
698
+ inputSchema: z.ZodObject<{
699
+ type: z.ZodLiteral<"object">;
700
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@modelcontextprotocol/client").JSONValue, import("@modelcontextprotocol/client").JSONValue, z.core.$ZodTypeInternals<import("@modelcontextprotocol/client").JSONValue, import("@modelcontextprotocol/client").JSONValue>>>>;
701
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
702
+ }, z.core.$catchall<z.ZodUnknown>>;
703
+ outputSchema: z.ZodOptional<z.ZodObject<{
704
+ $schema: z.ZodOptional<z.ZodString>;
705
+ }, z.core.$loose>>;
706
+ annotations: z.ZodOptional<z.ZodObject<{
707
+ title: z.ZodOptional<z.ZodString>;
708
+ readOnlyHint: z.ZodOptional<z.ZodBoolean>;
709
+ destructiveHint: z.ZodOptional<z.ZodBoolean>;
710
+ idempotentHint: z.ZodOptional<z.ZodBoolean>;
711
+ openWorldHint: z.ZodOptional<z.ZodBoolean>;
712
+ }, z.core.$strip>>;
713
+ execution: z.ZodOptional<z.ZodObject<{
714
+ taskSupport: z.ZodOptional<z.ZodEnum<{
715
+ optional: "optional";
716
+ required: "required";
717
+ forbidden: "forbidden";
718
+ }>>;
719
+ }, z.core.$strip>>;
720
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
721
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
722
+ src: z.ZodString;
723
+ mimeType: z.ZodOptional<z.ZodString>;
724
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
725
+ theme: z.ZodOptional<z.ZodEnum<{
726
+ light: "light";
727
+ dark: "dark";
728
+ }>>;
729
+ }, z.core.$strip>>>;
730
+ name: z.ZodString;
731
+ title: z.ZodOptional<z.ZodString>;
732
+ }, z.core.$strip>;
733
+ }, z.core.$strip>>;
734
+ theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
735
+ styles: z.ZodOptional<z.ZodObject<{
736
+ variables: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>, z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>>;
737
+ css: z.ZodOptional<z.ZodObject<{
738
+ fonts: z.ZodOptional<z.ZodString>;
739
+ }, z.core.$strip>>;
740
+ }, z.core.$strip>>;
741
+ displayMode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>;
742
+ availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>>;
743
+ containerDimensions: z.ZodOptional<z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
744
+ height: z.ZodNumber;
745
+ }, z.core.$strip>, z.ZodObject<{
746
+ maxHeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodUndefined]>>;
747
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
748
+ width: z.ZodNumber;
749
+ }, z.core.$strip>, z.ZodObject<{
750
+ maxWidth: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodUndefined]>>;
751
+ }, z.core.$strip>]>>>;
752
+ locale: z.ZodOptional<z.ZodString>;
753
+ timeZone: z.ZodOptional<z.ZodString>;
754
+ userAgent: z.ZodOptional<z.ZodString>;
755
+ platform: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"web">, z.ZodLiteral<"desktop">, z.ZodLiteral<"mobile">]>>;
756
+ deviceCapabilities: z.ZodOptional<z.ZodObject<{
757
+ touch: z.ZodOptional<z.ZodBoolean>;
758
+ hover: z.ZodOptional<z.ZodBoolean>;
759
+ }, z.core.$strip>>;
760
+ safeAreaInsets: z.ZodOptional<z.ZodObject<{
761
+ top: z.ZodNumber;
762
+ right: z.ZodNumber;
763
+ bottom: z.ZodNumber;
764
+ left: z.ZodNumber;
765
+ }, z.core.$strip>>;
766
+ }, z.core.$loose>;
767
+ }, z.core.$strip>;
768
+ /**
769
+ * @description Request to update the agent's context without requiring a follow-up action (View -> Host).
770
+ *
771
+ * Unlike `notifications/message` which is for debugging/logging, this request is intended
772
+ * to update the Host's model context. Each request overwrites the previous context sent by the View.
773
+ * Unlike messages, context updates do not trigger follow-ups.
774
+ *
775
+ * The host will typically defer sending the context to the model until the next user message
776
+ * (including `ui/message`), and will only send the last update received.
777
+ *
778
+ * @see {@link app.App.updateModelContext `App.updateModelContext`} for the method that sends this request
779
+ */
780
+ export declare const McpUiUpdateModelContextRequestSchema: z.ZodObject<{
781
+ method: z.ZodLiteral<"ui/update-model-context">;
782
+ params: z.ZodObject<{
783
+ content: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
784
+ type: z.ZodLiteral<"text">;
785
+ text: z.ZodString;
786
+ annotations: z.ZodOptional<z.ZodObject<{
787
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
788
+ user: "user";
789
+ assistant: "assistant";
790
+ }>>>;
791
+ priority: z.ZodOptional<z.ZodNumber>;
792
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
793
+ }, z.core.$strip>>;
794
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
795
+ }, z.core.$strip>, z.ZodObject<{
796
+ type: z.ZodLiteral<"image">;
797
+ data: z.ZodString;
798
+ mimeType: z.ZodString;
799
+ annotations: z.ZodOptional<z.ZodObject<{
800
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
801
+ user: "user";
802
+ assistant: "assistant";
803
+ }>>>;
804
+ priority: z.ZodOptional<z.ZodNumber>;
805
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
806
+ }, z.core.$strip>>;
807
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
808
+ }, z.core.$strip>, z.ZodObject<{
809
+ type: z.ZodLiteral<"audio">;
810
+ data: z.ZodString;
811
+ mimeType: z.ZodString;
812
+ annotations: z.ZodOptional<z.ZodObject<{
813
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
814
+ user: "user";
815
+ assistant: "assistant";
816
+ }>>>;
817
+ priority: z.ZodOptional<z.ZodNumber>;
818
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
819
+ }, z.core.$strip>>;
820
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
821
+ }, z.core.$strip>, z.ZodObject<{
822
+ uri: z.ZodString;
823
+ description: z.ZodOptional<z.ZodString>;
824
+ mimeType: z.ZodOptional<z.ZodString>;
825
+ size: z.ZodOptional<z.ZodNumber>;
826
+ annotations: z.ZodOptional<z.ZodObject<{
827
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
828
+ user: "user";
829
+ assistant: "assistant";
830
+ }>>>;
831
+ priority: z.ZodOptional<z.ZodNumber>;
832
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
833
+ }, z.core.$strip>>;
834
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
835
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
836
+ src: z.ZodString;
837
+ mimeType: z.ZodOptional<z.ZodString>;
838
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
839
+ theme: z.ZodOptional<z.ZodEnum<{
840
+ light: "light";
841
+ dark: "dark";
842
+ }>>;
843
+ }, z.core.$strip>>>;
844
+ name: z.ZodString;
845
+ title: z.ZodOptional<z.ZodString>;
846
+ type: z.ZodLiteral<"resource_link">;
847
+ }, z.core.$strip>, z.ZodObject<{
848
+ type: z.ZodLiteral<"resource">;
849
+ resource: z.ZodUnion<readonly [z.ZodObject<{
850
+ uri: z.ZodString;
851
+ mimeType: z.ZodOptional<z.ZodString>;
852
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
853
+ text: z.ZodString;
854
+ }, z.core.$strip>, z.ZodObject<{
855
+ uri: z.ZodString;
856
+ mimeType: z.ZodOptional<z.ZodString>;
857
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
858
+ blob: z.ZodString;
859
+ }, z.core.$strip>]>;
860
+ annotations: z.ZodOptional<z.ZodObject<{
861
+ audience: z.ZodOptional<z.ZodArray<z.ZodEnum<{
862
+ user: "user";
863
+ assistant: "assistant";
864
+ }>>>;
865
+ priority: z.ZodOptional<z.ZodNumber>;
866
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
867
+ }, z.core.$strip>>;
868
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
869
+ }, z.core.$strip>]>>>;
870
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
871
+ }, z.core.$strip>;
872
+ }, z.core.$strip>;
873
+ /**
874
+ * @description Initialization request sent from View to Host.
875
+ * @see {@link app!App.connect `App.connect`} for the method that sends this request
876
+ */
877
+ export declare const McpUiInitializeRequestSchema: z.ZodObject<{
878
+ method: z.ZodLiteral<"ui/initialize">;
879
+ params: z.ZodObject<{
880
+ appInfo: z.ZodObject<{
881
+ version: z.ZodString;
882
+ websiteUrl: z.ZodOptional<z.ZodString>;
883
+ description: z.ZodOptional<z.ZodString>;
884
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
885
+ src: z.ZodString;
886
+ mimeType: z.ZodOptional<z.ZodString>;
887
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
888
+ theme: z.ZodOptional<z.ZodEnum<{
889
+ light: "light";
890
+ dark: "dark";
891
+ }>>;
892
+ }, z.core.$strip>>>;
893
+ name: z.ZodString;
894
+ title: z.ZodOptional<z.ZodString>;
895
+ }, z.core.$strip>;
896
+ appCapabilities: z.ZodObject<{
897
+ experimental: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
898
+ tools: z.ZodOptional<z.ZodObject<{
899
+ listChanged: z.ZodOptional<z.ZodBoolean>;
900
+ }, z.core.$strip>>;
901
+ availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>>;
902
+ }, z.core.$strip>;
903
+ protocolVersion: z.ZodString;
904
+ }, z.core.$strip>;
905
+ }, z.core.$strip>;
906
+ /**
907
+ * @description Initialization result returned from Host to View.
908
+ * @see {@link McpUiInitializeRequest `McpUiInitializeRequest`}
909
+ */
910
+ export declare const McpUiInitializeResultSchema: z.ZodObject<{
911
+ protocolVersion: z.ZodString;
912
+ hostInfo: z.ZodObject<{
913
+ version: z.ZodString;
914
+ websiteUrl: z.ZodOptional<z.ZodString>;
915
+ description: z.ZodOptional<z.ZodString>;
916
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
917
+ src: z.ZodString;
918
+ mimeType: z.ZodOptional<z.ZodString>;
919
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
920
+ theme: z.ZodOptional<z.ZodEnum<{
921
+ light: "light";
922
+ dark: "dark";
923
+ }>>;
924
+ }, z.core.$strip>>>;
925
+ name: z.ZodString;
926
+ title: z.ZodOptional<z.ZodString>;
927
+ }, z.core.$strip>;
928
+ hostCapabilities: z.ZodObject<{
929
+ experimental: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
930
+ openLinks: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
931
+ downloadFile: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
932
+ serverTools: z.ZodOptional<z.ZodObject<{
933
+ listChanged: z.ZodOptional<z.ZodBoolean>;
934
+ }, z.core.$strip>>;
935
+ serverResources: z.ZodOptional<z.ZodObject<{
936
+ listChanged: z.ZodOptional<z.ZodBoolean>;
937
+ }, z.core.$strip>>;
938
+ logging: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
939
+ sandbox: z.ZodOptional<z.ZodObject<{
940
+ permissions: z.ZodOptional<z.ZodObject<{
941
+ camera: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
942
+ microphone: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
943
+ geolocation: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
944
+ clipboardWrite: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
945
+ }, z.core.$strip>>;
946
+ csp: z.ZodOptional<z.ZodObject<{
947
+ connectDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
948
+ resourceDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
949
+ frameDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
950
+ baseUriDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
951
+ }, z.core.$strip>>;
952
+ }, z.core.$strip>>;
953
+ updateModelContext: z.ZodOptional<z.ZodObject<{
954
+ text: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
955
+ image: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
956
+ audio: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
957
+ resource: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
958
+ resourceLink: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
959
+ structuredContent: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
960
+ }, z.core.$strip>>;
961
+ message: z.ZodOptional<z.ZodObject<{
962
+ text: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
963
+ image: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
964
+ audio: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
965
+ resource: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
966
+ resourceLink: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
967
+ structuredContent: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
968
+ }, z.core.$strip>>;
969
+ sampling: z.ZodOptional<z.ZodObject<{
970
+ tools: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
971
+ }, z.core.$strip>>;
972
+ }, z.core.$strip>;
973
+ hostContext: z.ZodObject<{
974
+ toolInfo: z.ZodOptional<z.ZodObject<{
975
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
976
+ tool: z.ZodObject<{
977
+ description: z.ZodOptional<z.ZodString>;
978
+ inputSchema: z.ZodObject<{
979
+ type: z.ZodLiteral<"object">;
980
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@modelcontextprotocol/client").JSONValue, import("@modelcontextprotocol/client").JSONValue, z.core.$ZodTypeInternals<import("@modelcontextprotocol/client").JSONValue, import("@modelcontextprotocol/client").JSONValue>>>>;
981
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
982
+ }, z.core.$catchall<z.ZodUnknown>>;
983
+ outputSchema: z.ZodOptional<z.ZodObject<{
984
+ $schema: z.ZodOptional<z.ZodString>;
985
+ }, z.core.$loose>>;
986
+ annotations: z.ZodOptional<z.ZodObject<{
987
+ title: z.ZodOptional<z.ZodString>;
988
+ readOnlyHint: z.ZodOptional<z.ZodBoolean>;
989
+ destructiveHint: z.ZodOptional<z.ZodBoolean>;
990
+ idempotentHint: z.ZodOptional<z.ZodBoolean>;
991
+ openWorldHint: z.ZodOptional<z.ZodBoolean>;
992
+ }, z.core.$strip>>;
993
+ execution: z.ZodOptional<z.ZodObject<{
994
+ taskSupport: z.ZodOptional<z.ZodEnum<{
995
+ optional: "optional";
996
+ required: "required";
997
+ forbidden: "forbidden";
998
+ }>>;
999
+ }, z.core.$strip>>;
1000
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1001
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1002
+ src: z.ZodString;
1003
+ mimeType: z.ZodOptional<z.ZodString>;
1004
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1005
+ theme: z.ZodOptional<z.ZodEnum<{
1006
+ light: "light";
1007
+ dark: "dark";
1008
+ }>>;
1009
+ }, z.core.$strip>>>;
1010
+ name: z.ZodString;
1011
+ title: z.ZodOptional<z.ZodString>;
1012
+ }, z.core.$strip>;
1013
+ }, z.core.$strip>>;
1014
+ theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
1015
+ styles: z.ZodOptional<z.ZodObject<{
1016
+ variables: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>, z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>>;
1017
+ css: z.ZodOptional<z.ZodObject<{
1018
+ fonts: z.ZodOptional<z.ZodString>;
1019
+ }, z.core.$strip>>;
1020
+ }, z.core.$strip>>;
1021
+ displayMode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>;
1022
+ availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>>;
1023
+ containerDimensions: z.ZodOptional<z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
1024
+ height: z.ZodNumber;
1025
+ }, z.core.$strip>, z.ZodObject<{
1026
+ maxHeight: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodUndefined]>>;
1027
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
1028
+ width: z.ZodNumber;
1029
+ }, z.core.$strip>, z.ZodObject<{
1030
+ maxWidth: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodUndefined]>>;
1031
+ }, z.core.$strip>]>>>;
1032
+ locale: z.ZodOptional<z.ZodString>;
1033
+ timeZone: z.ZodOptional<z.ZodString>;
1034
+ userAgent: z.ZodOptional<z.ZodString>;
1035
+ platform: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"web">, z.ZodLiteral<"desktop">, z.ZodLiteral<"mobile">]>>;
1036
+ deviceCapabilities: z.ZodOptional<z.ZodObject<{
1037
+ touch: z.ZodOptional<z.ZodBoolean>;
1038
+ hover: z.ZodOptional<z.ZodBoolean>;
1039
+ }, z.core.$strip>>;
1040
+ safeAreaInsets: z.ZodOptional<z.ZodObject<{
1041
+ top: z.ZodNumber;
1042
+ right: z.ZodNumber;
1043
+ bottom: z.ZodNumber;
1044
+ left: z.ZodNumber;
1045
+ }, z.core.$strip>>;
1046
+ }, z.core.$loose>;
1047
+ }, z.core.$loose>;