earthsdk3 3.6.0-beta.9 → 3.7.0-beta.11
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.
- package/dist/earthsdk3.iife.js +47 -43
- package/dist/earthsdk3.js +5704 -5405
- package/dist/earthsdk3.umd.cjs +37 -37
- package/dist/types/ESMCPTools/ESMCPClient.d.ts +21 -0
- package/dist/types/ESMCPTools/ESMCPClient.d.ts.map +1 -0
- package/dist/types/ESMCPTools/index.d.ts +3 -0
- package/dist/types/ESMCPTools/index.d.ts.map +1 -0
- package/dist/types/ESMCPTools/tools/camera.d.ts +4 -0
- package/dist/types/ESMCPTools/tools/camera.d.ts.map +1 -0
- package/dist/types/ESMCPTools/tools/index.d.ts +3 -0
- package/dist/types/ESMCPTools/tools/index.d.ts.map +1 -0
- package/dist/types/ESMCPTools/tools/object.d.ts +4 -0
- package/dist/types/ESMCPTools/tools/object.d.ts.map +1 -0
- package/dist/types/ESMCPTools/types/CallToolResultSchema.d.ts +2478 -0
- package/dist/types/ESMCPTools/types/CallToolResultSchema.d.ts.map +1 -0
- package/dist/types/ESMCPTools/types/index.d.ts +34 -0
- package/dist/types/ESMCPTools/types/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +6 -3
- package/dist/types/utils/geoPolylineToBezierSpline/bezierSpline/lib/spline.d.ts +0 -62
- package/dist/types/xbsj-base/xr-utils/gif/gifuct-js/index.d.ts +0 -101
|
@@ -0,0 +1,2478 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The server's response to a tool call.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CallToolResultSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
6
|
+
/**
|
|
7
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
8
|
+
* for notes on _meta usage.
|
|
9
|
+
*/
|
|
10
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
11
|
+
}, {
|
|
12
|
+
/**
|
|
13
|
+
* A list of content objects that represent the result of the tool call.
|
|
14
|
+
*
|
|
15
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
16
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
17
|
+
*/
|
|
18
|
+
content: z.ZodDefault<z.ZodArray<z.ZodUnion<[
|
|
19
|
+
z.ZodObject<{
|
|
20
|
+
type: z.ZodLiteral<"text">;
|
|
21
|
+
/**
|
|
22
|
+
* The text content of the message.
|
|
23
|
+
*/
|
|
24
|
+
text: z.ZodString;
|
|
25
|
+
/**
|
|
26
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
27
|
+
* for notes on _meta usage.
|
|
28
|
+
*/
|
|
29
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
30
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
31
|
+
type: z.ZodLiteral<"text">;
|
|
32
|
+
/**
|
|
33
|
+
* The text content of the message.
|
|
34
|
+
*/
|
|
35
|
+
text: z.ZodString;
|
|
36
|
+
/**
|
|
37
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
38
|
+
* for notes on _meta usage.
|
|
39
|
+
*/
|
|
40
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
41
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
42
|
+
type: z.ZodLiteral<"text">;
|
|
43
|
+
/**
|
|
44
|
+
* The text content of the message.
|
|
45
|
+
*/
|
|
46
|
+
text: z.ZodString;
|
|
47
|
+
/**
|
|
48
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
49
|
+
* for notes on _meta usage.
|
|
50
|
+
*/
|
|
51
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
52
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
53
|
+
z.ZodObject<{
|
|
54
|
+
type: z.ZodLiteral<"image">;
|
|
55
|
+
/**
|
|
56
|
+
* The base64-encoded image data.
|
|
57
|
+
*/
|
|
58
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
59
|
+
/**
|
|
60
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
61
|
+
*/
|
|
62
|
+
mimeType: z.ZodString;
|
|
63
|
+
/**
|
|
64
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
65
|
+
* for notes on _meta usage.
|
|
66
|
+
*/
|
|
67
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
68
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
69
|
+
type: z.ZodLiteral<"image">;
|
|
70
|
+
/**
|
|
71
|
+
* The base64-encoded image data.
|
|
72
|
+
*/
|
|
73
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
74
|
+
/**
|
|
75
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
76
|
+
*/
|
|
77
|
+
mimeType: z.ZodString;
|
|
78
|
+
/**
|
|
79
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
80
|
+
* for notes on _meta usage.
|
|
81
|
+
*/
|
|
82
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
83
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
84
|
+
type: z.ZodLiteral<"image">;
|
|
85
|
+
/**
|
|
86
|
+
* The base64-encoded image data.
|
|
87
|
+
*/
|
|
88
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
89
|
+
/**
|
|
90
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
91
|
+
*/
|
|
92
|
+
mimeType: z.ZodString;
|
|
93
|
+
/**
|
|
94
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
95
|
+
* for notes on _meta usage.
|
|
96
|
+
*/
|
|
97
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
98
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
99
|
+
z.ZodObject<{
|
|
100
|
+
type: z.ZodLiteral<"audio">;
|
|
101
|
+
/**
|
|
102
|
+
* The base64-encoded audio data.
|
|
103
|
+
*/
|
|
104
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
105
|
+
/**
|
|
106
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
107
|
+
*/
|
|
108
|
+
mimeType: z.ZodString;
|
|
109
|
+
/**
|
|
110
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
111
|
+
* for notes on _meta usage.
|
|
112
|
+
*/
|
|
113
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
114
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
115
|
+
type: z.ZodLiteral<"audio">;
|
|
116
|
+
/**
|
|
117
|
+
* The base64-encoded audio data.
|
|
118
|
+
*/
|
|
119
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
120
|
+
/**
|
|
121
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
122
|
+
*/
|
|
123
|
+
mimeType: z.ZodString;
|
|
124
|
+
/**
|
|
125
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
126
|
+
* for notes on _meta usage.
|
|
127
|
+
*/
|
|
128
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
129
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
130
|
+
type: z.ZodLiteral<"audio">;
|
|
131
|
+
/**
|
|
132
|
+
* The base64-encoded audio data.
|
|
133
|
+
*/
|
|
134
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
135
|
+
/**
|
|
136
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
137
|
+
*/
|
|
138
|
+
mimeType: z.ZodString;
|
|
139
|
+
/**
|
|
140
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
141
|
+
* for notes on _meta usage.
|
|
142
|
+
*/
|
|
143
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
144
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
145
|
+
z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
146
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
/**
|
|
149
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
150
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
151
|
+
*
|
|
152
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
153
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
154
|
+
* if present).
|
|
155
|
+
*/
|
|
156
|
+
title: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, {
|
|
158
|
+
/**
|
|
159
|
+
* The URI of this resource.
|
|
160
|
+
*/
|
|
161
|
+
uri: z.ZodString;
|
|
162
|
+
/**
|
|
163
|
+
* A description of what this resource represents.
|
|
164
|
+
*
|
|
165
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
166
|
+
*/
|
|
167
|
+
description: z.ZodOptional<z.ZodString>;
|
|
168
|
+
/**
|
|
169
|
+
* The MIME type of this resource, if known.
|
|
170
|
+
*/
|
|
171
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
172
|
+
/**
|
|
173
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
174
|
+
* for notes on _meta usage.
|
|
175
|
+
*/
|
|
176
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
177
|
+
}>, {
|
|
178
|
+
/**
|
|
179
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
180
|
+
*
|
|
181
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
182
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
183
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
184
|
+
*
|
|
185
|
+
* Clients that support rendering icons SHOULD also support:
|
|
186
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
187
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
188
|
+
*/
|
|
189
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
|
+
/**
|
|
191
|
+
* URL or data URI for the icon.
|
|
192
|
+
*/
|
|
193
|
+
src: z.ZodString;
|
|
194
|
+
/**
|
|
195
|
+
* Optional MIME type for the icon.
|
|
196
|
+
*/
|
|
197
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
198
|
+
/**
|
|
199
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
200
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
201
|
+
*
|
|
202
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
203
|
+
*/
|
|
204
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
205
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
206
|
+
/**
|
|
207
|
+
* URL or data URI for the icon.
|
|
208
|
+
*/
|
|
209
|
+
src: z.ZodString;
|
|
210
|
+
/**
|
|
211
|
+
* Optional MIME type for the icon.
|
|
212
|
+
*/
|
|
213
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
214
|
+
/**
|
|
215
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
216
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
217
|
+
*
|
|
218
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
219
|
+
*/
|
|
220
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
221
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
222
|
+
/**
|
|
223
|
+
* URL or data URI for the icon.
|
|
224
|
+
*/
|
|
225
|
+
src: z.ZodString;
|
|
226
|
+
/**
|
|
227
|
+
* Optional MIME type for the icon.
|
|
228
|
+
*/
|
|
229
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
230
|
+
/**
|
|
231
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
232
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
233
|
+
*
|
|
234
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
235
|
+
*/
|
|
236
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
237
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
238
|
+
}>, {
|
|
239
|
+
type: z.ZodLiteral<"resource_link">;
|
|
240
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
241
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
242
|
+
name: z.ZodString;
|
|
243
|
+
/**
|
|
244
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
245
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
246
|
+
*
|
|
247
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
248
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
249
|
+
* if present).
|
|
250
|
+
*/
|
|
251
|
+
title: z.ZodOptional<z.ZodString>;
|
|
252
|
+
}, {
|
|
253
|
+
/**
|
|
254
|
+
* The URI of this resource.
|
|
255
|
+
*/
|
|
256
|
+
uri: z.ZodString;
|
|
257
|
+
/**
|
|
258
|
+
* A description of what this resource represents.
|
|
259
|
+
*
|
|
260
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
261
|
+
*/
|
|
262
|
+
description: z.ZodOptional<z.ZodString>;
|
|
263
|
+
/**
|
|
264
|
+
* The MIME type of this resource, if known.
|
|
265
|
+
*/
|
|
266
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
267
|
+
/**
|
|
268
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
269
|
+
* for notes on _meta usage.
|
|
270
|
+
*/
|
|
271
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
272
|
+
}>, {
|
|
273
|
+
/**
|
|
274
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
275
|
+
*
|
|
276
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
277
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
278
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
279
|
+
*
|
|
280
|
+
* Clients that support rendering icons SHOULD also support:
|
|
281
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
282
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
283
|
+
*/
|
|
284
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
285
|
+
/**
|
|
286
|
+
* URL or data URI for the icon.
|
|
287
|
+
*/
|
|
288
|
+
src: z.ZodString;
|
|
289
|
+
/**
|
|
290
|
+
* Optional MIME type for the icon.
|
|
291
|
+
*/
|
|
292
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
293
|
+
/**
|
|
294
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
295
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
296
|
+
*
|
|
297
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
298
|
+
*/
|
|
299
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
300
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
301
|
+
/**
|
|
302
|
+
* URL or data URI for the icon.
|
|
303
|
+
*/
|
|
304
|
+
src: z.ZodString;
|
|
305
|
+
/**
|
|
306
|
+
* Optional MIME type for the icon.
|
|
307
|
+
*/
|
|
308
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
309
|
+
/**
|
|
310
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
311
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
312
|
+
*
|
|
313
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
314
|
+
*/
|
|
315
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
316
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
317
|
+
/**
|
|
318
|
+
* URL or data URI for the icon.
|
|
319
|
+
*/
|
|
320
|
+
src: z.ZodString;
|
|
321
|
+
/**
|
|
322
|
+
* Optional MIME type for the icon.
|
|
323
|
+
*/
|
|
324
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
325
|
+
/**
|
|
326
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
327
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
328
|
+
*
|
|
329
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
330
|
+
*/
|
|
331
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
332
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
333
|
+
}>, {
|
|
334
|
+
type: z.ZodLiteral<"resource_link">;
|
|
335
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
336
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
337
|
+
name: z.ZodString;
|
|
338
|
+
/**
|
|
339
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
340
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
341
|
+
*
|
|
342
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
343
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
344
|
+
* if present).
|
|
345
|
+
*/
|
|
346
|
+
title: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, {
|
|
348
|
+
/**
|
|
349
|
+
* The URI of this resource.
|
|
350
|
+
*/
|
|
351
|
+
uri: z.ZodString;
|
|
352
|
+
/**
|
|
353
|
+
* A description of what this resource represents.
|
|
354
|
+
*
|
|
355
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
356
|
+
*/
|
|
357
|
+
description: z.ZodOptional<z.ZodString>;
|
|
358
|
+
/**
|
|
359
|
+
* The MIME type of this resource, if known.
|
|
360
|
+
*/
|
|
361
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
362
|
+
/**
|
|
363
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
364
|
+
* for notes on _meta usage.
|
|
365
|
+
*/
|
|
366
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
367
|
+
}>, {
|
|
368
|
+
/**
|
|
369
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
370
|
+
*
|
|
371
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
372
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
373
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
374
|
+
*
|
|
375
|
+
* Clients that support rendering icons SHOULD also support:
|
|
376
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
377
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
378
|
+
*/
|
|
379
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
380
|
+
/**
|
|
381
|
+
* URL or data URI for the icon.
|
|
382
|
+
*/
|
|
383
|
+
src: z.ZodString;
|
|
384
|
+
/**
|
|
385
|
+
* Optional MIME type for the icon.
|
|
386
|
+
*/
|
|
387
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
388
|
+
/**
|
|
389
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
390
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
391
|
+
*
|
|
392
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
393
|
+
*/
|
|
394
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
395
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
396
|
+
/**
|
|
397
|
+
* URL or data URI for the icon.
|
|
398
|
+
*/
|
|
399
|
+
src: z.ZodString;
|
|
400
|
+
/**
|
|
401
|
+
* Optional MIME type for the icon.
|
|
402
|
+
*/
|
|
403
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
404
|
+
/**
|
|
405
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
406
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
407
|
+
*
|
|
408
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
409
|
+
*/
|
|
410
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
411
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
412
|
+
/**
|
|
413
|
+
* URL or data URI for the icon.
|
|
414
|
+
*/
|
|
415
|
+
src: z.ZodString;
|
|
416
|
+
/**
|
|
417
|
+
* Optional MIME type for the icon.
|
|
418
|
+
*/
|
|
419
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
420
|
+
/**
|
|
421
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
422
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
423
|
+
*
|
|
424
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
425
|
+
*/
|
|
426
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
427
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
428
|
+
}>, {
|
|
429
|
+
type: z.ZodLiteral<"resource_link">;
|
|
430
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
431
|
+
z.ZodObject<{
|
|
432
|
+
type: z.ZodLiteral<"resource">;
|
|
433
|
+
resource: z.ZodUnion<[
|
|
434
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
435
|
+
/**
|
|
436
|
+
* The URI of this resource.
|
|
437
|
+
*/
|
|
438
|
+
uri: z.ZodString;
|
|
439
|
+
/**
|
|
440
|
+
* The MIME type of this resource, if known.
|
|
441
|
+
*/
|
|
442
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
443
|
+
/**
|
|
444
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
445
|
+
* for notes on _meta usage.
|
|
446
|
+
*/
|
|
447
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
448
|
+
}, {
|
|
449
|
+
/**
|
|
450
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
451
|
+
*/
|
|
452
|
+
text: z.ZodString;
|
|
453
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
454
|
+
/**
|
|
455
|
+
* The URI of this resource.
|
|
456
|
+
*/
|
|
457
|
+
uri: z.ZodString;
|
|
458
|
+
/**
|
|
459
|
+
* The MIME type of this resource, if known.
|
|
460
|
+
*/
|
|
461
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
462
|
+
/**
|
|
463
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
464
|
+
* for notes on _meta usage.
|
|
465
|
+
*/
|
|
466
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
467
|
+
}, {
|
|
468
|
+
/**
|
|
469
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
470
|
+
*/
|
|
471
|
+
text: z.ZodString;
|
|
472
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
473
|
+
/**
|
|
474
|
+
* The URI of this resource.
|
|
475
|
+
*/
|
|
476
|
+
uri: z.ZodString;
|
|
477
|
+
/**
|
|
478
|
+
* The MIME type of this resource, if known.
|
|
479
|
+
*/
|
|
480
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
481
|
+
/**
|
|
482
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
483
|
+
* for notes on _meta usage.
|
|
484
|
+
*/
|
|
485
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
486
|
+
}, {
|
|
487
|
+
/**
|
|
488
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
489
|
+
*/
|
|
490
|
+
text: z.ZodString;
|
|
491
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
492
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
493
|
+
/**
|
|
494
|
+
* The URI of this resource.
|
|
495
|
+
*/
|
|
496
|
+
uri: z.ZodString;
|
|
497
|
+
/**
|
|
498
|
+
* The MIME type of this resource, if known.
|
|
499
|
+
*/
|
|
500
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
501
|
+
/**
|
|
502
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
503
|
+
* for notes on _meta usage.
|
|
504
|
+
*/
|
|
505
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
506
|
+
}, {
|
|
507
|
+
/**
|
|
508
|
+
* A base64-encoded string representing the binary data of the item.
|
|
509
|
+
*/
|
|
510
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
511
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
512
|
+
/**
|
|
513
|
+
* The URI of this resource.
|
|
514
|
+
*/
|
|
515
|
+
uri: z.ZodString;
|
|
516
|
+
/**
|
|
517
|
+
* The MIME type of this resource, if known.
|
|
518
|
+
*/
|
|
519
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
520
|
+
/**
|
|
521
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
522
|
+
* for notes on _meta usage.
|
|
523
|
+
*/
|
|
524
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
525
|
+
}, {
|
|
526
|
+
/**
|
|
527
|
+
* A base64-encoded string representing the binary data of the item.
|
|
528
|
+
*/
|
|
529
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
530
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
531
|
+
/**
|
|
532
|
+
* The URI of this resource.
|
|
533
|
+
*/
|
|
534
|
+
uri: z.ZodString;
|
|
535
|
+
/**
|
|
536
|
+
* The MIME type of this resource, if known.
|
|
537
|
+
*/
|
|
538
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
539
|
+
/**
|
|
540
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
541
|
+
* for notes on _meta usage.
|
|
542
|
+
*/
|
|
543
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
544
|
+
}, {
|
|
545
|
+
/**
|
|
546
|
+
* A base64-encoded string representing the binary data of the item.
|
|
547
|
+
*/
|
|
548
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
549
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
550
|
+
]>;
|
|
551
|
+
/**
|
|
552
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
553
|
+
* for notes on _meta usage.
|
|
554
|
+
*/
|
|
555
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
556
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
557
|
+
type: z.ZodLiteral<"resource">;
|
|
558
|
+
resource: z.ZodUnion<[
|
|
559
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
560
|
+
/**
|
|
561
|
+
* The URI of this resource.
|
|
562
|
+
*/
|
|
563
|
+
uri: z.ZodString;
|
|
564
|
+
/**
|
|
565
|
+
* The MIME type of this resource, if known.
|
|
566
|
+
*/
|
|
567
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
568
|
+
/**
|
|
569
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
570
|
+
* for notes on _meta usage.
|
|
571
|
+
*/
|
|
572
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
573
|
+
}, {
|
|
574
|
+
/**
|
|
575
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
576
|
+
*/
|
|
577
|
+
text: z.ZodString;
|
|
578
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
579
|
+
/**
|
|
580
|
+
* The URI of this resource.
|
|
581
|
+
*/
|
|
582
|
+
uri: z.ZodString;
|
|
583
|
+
/**
|
|
584
|
+
* The MIME type of this resource, if known.
|
|
585
|
+
*/
|
|
586
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
587
|
+
/**
|
|
588
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
589
|
+
* for notes on _meta usage.
|
|
590
|
+
*/
|
|
591
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
592
|
+
}, {
|
|
593
|
+
/**
|
|
594
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
595
|
+
*/
|
|
596
|
+
text: z.ZodString;
|
|
597
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
598
|
+
/**
|
|
599
|
+
* The URI of this resource.
|
|
600
|
+
*/
|
|
601
|
+
uri: z.ZodString;
|
|
602
|
+
/**
|
|
603
|
+
* The MIME type of this resource, if known.
|
|
604
|
+
*/
|
|
605
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
606
|
+
/**
|
|
607
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
608
|
+
* for notes on _meta usage.
|
|
609
|
+
*/
|
|
610
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
611
|
+
}, {
|
|
612
|
+
/**
|
|
613
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
614
|
+
*/
|
|
615
|
+
text: z.ZodString;
|
|
616
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
617
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
618
|
+
/**
|
|
619
|
+
* The URI of this resource.
|
|
620
|
+
*/
|
|
621
|
+
uri: z.ZodString;
|
|
622
|
+
/**
|
|
623
|
+
* The MIME type of this resource, if known.
|
|
624
|
+
*/
|
|
625
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
626
|
+
/**
|
|
627
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
628
|
+
* for notes on _meta usage.
|
|
629
|
+
*/
|
|
630
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
631
|
+
}, {
|
|
632
|
+
/**
|
|
633
|
+
* A base64-encoded string representing the binary data of the item.
|
|
634
|
+
*/
|
|
635
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
636
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
637
|
+
/**
|
|
638
|
+
* The URI of this resource.
|
|
639
|
+
*/
|
|
640
|
+
uri: z.ZodString;
|
|
641
|
+
/**
|
|
642
|
+
* The MIME type of this resource, if known.
|
|
643
|
+
*/
|
|
644
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
645
|
+
/**
|
|
646
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
647
|
+
* for notes on _meta usage.
|
|
648
|
+
*/
|
|
649
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
650
|
+
}, {
|
|
651
|
+
/**
|
|
652
|
+
* A base64-encoded string representing the binary data of the item.
|
|
653
|
+
*/
|
|
654
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
655
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
656
|
+
/**
|
|
657
|
+
* The URI of this resource.
|
|
658
|
+
*/
|
|
659
|
+
uri: z.ZodString;
|
|
660
|
+
/**
|
|
661
|
+
* The MIME type of this resource, if known.
|
|
662
|
+
*/
|
|
663
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
664
|
+
/**
|
|
665
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
666
|
+
* for notes on _meta usage.
|
|
667
|
+
*/
|
|
668
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
669
|
+
}, {
|
|
670
|
+
/**
|
|
671
|
+
* A base64-encoded string representing the binary data of the item.
|
|
672
|
+
*/
|
|
673
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
674
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
675
|
+
]>;
|
|
676
|
+
/**
|
|
677
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
678
|
+
* for notes on _meta usage.
|
|
679
|
+
*/
|
|
680
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
681
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
682
|
+
type: z.ZodLiteral<"resource">;
|
|
683
|
+
resource: z.ZodUnion<[
|
|
684
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
685
|
+
/**
|
|
686
|
+
* The URI of this resource.
|
|
687
|
+
*/
|
|
688
|
+
uri: z.ZodString;
|
|
689
|
+
/**
|
|
690
|
+
* The MIME type of this resource, if known.
|
|
691
|
+
*/
|
|
692
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
693
|
+
/**
|
|
694
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
695
|
+
* for notes on _meta usage.
|
|
696
|
+
*/
|
|
697
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
698
|
+
}, {
|
|
699
|
+
/**
|
|
700
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
701
|
+
*/
|
|
702
|
+
text: z.ZodString;
|
|
703
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
704
|
+
/**
|
|
705
|
+
* The URI of this resource.
|
|
706
|
+
*/
|
|
707
|
+
uri: z.ZodString;
|
|
708
|
+
/**
|
|
709
|
+
* The MIME type of this resource, if known.
|
|
710
|
+
*/
|
|
711
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
712
|
+
/**
|
|
713
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
714
|
+
* for notes on _meta usage.
|
|
715
|
+
*/
|
|
716
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
717
|
+
}, {
|
|
718
|
+
/**
|
|
719
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
720
|
+
*/
|
|
721
|
+
text: z.ZodString;
|
|
722
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
723
|
+
/**
|
|
724
|
+
* The URI of this resource.
|
|
725
|
+
*/
|
|
726
|
+
uri: z.ZodString;
|
|
727
|
+
/**
|
|
728
|
+
* The MIME type of this resource, if known.
|
|
729
|
+
*/
|
|
730
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
731
|
+
/**
|
|
732
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
733
|
+
* for notes on _meta usage.
|
|
734
|
+
*/
|
|
735
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
736
|
+
}, {
|
|
737
|
+
/**
|
|
738
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
739
|
+
*/
|
|
740
|
+
text: z.ZodString;
|
|
741
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
742
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
743
|
+
/**
|
|
744
|
+
* The URI of this resource.
|
|
745
|
+
*/
|
|
746
|
+
uri: z.ZodString;
|
|
747
|
+
/**
|
|
748
|
+
* The MIME type of this resource, if known.
|
|
749
|
+
*/
|
|
750
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
751
|
+
/**
|
|
752
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
753
|
+
* for notes on _meta usage.
|
|
754
|
+
*/
|
|
755
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
756
|
+
}, {
|
|
757
|
+
/**
|
|
758
|
+
* A base64-encoded string representing the binary data of the item.
|
|
759
|
+
*/
|
|
760
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
761
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
762
|
+
/**
|
|
763
|
+
* The URI of this resource.
|
|
764
|
+
*/
|
|
765
|
+
uri: z.ZodString;
|
|
766
|
+
/**
|
|
767
|
+
* The MIME type of this resource, if known.
|
|
768
|
+
*/
|
|
769
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
770
|
+
/**
|
|
771
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
772
|
+
* for notes on _meta usage.
|
|
773
|
+
*/
|
|
774
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
775
|
+
}, {
|
|
776
|
+
/**
|
|
777
|
+
* A base64-encoded string representing the binary data of the item.
|
|
778
|
+
*/
|
|
779
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
780
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
781
|
+
/**
|
|
782
|
+
* The URI of this resource.
|
|
783
|
+
*/
|
|
784
|
+
uri: z.ZodString;
|
|
785
|
+
/**
|
|
786
|
+
* The MIME type of this resource, if known.
|
|
787
|
+
*/
|
|
788
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
789
|
+
/**
|
|
790
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
791
|
+
* for notes on _meta usage.
|
|
792
|
+
*/
|
|
793
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
794
|
+
}, {
|
|
795
|
+
/**
|
|
796
|
+
* A base64-encoded string representing the binary data of the item.
|
|
797
|
+
*/
|
|
798
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
799
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
800
|
+
]>;
|
|
801
|
+
/**
|
|
802
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
803
|
+
* for notes on _meta usage.
|
|
804
|
+
*/
|
|
805
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
806
|
+
}, z.ZodTypeAny, "passthrough">>
|
|
807
|
+
]>, "many">>;
|
|
808
|
+
/**
|
|
809
|
+
* An object containing structured tool output.
|
|
810
|
+
*
|
|
811
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
812
|
+
*/
|
|
813
|
+
structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
814
|
+
/**
|
|
815
|
+
* Whether the tool call ended in an error.
|
|
816
|
+
*
|
|
817
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
818
|
+
*
|
|
819
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
820
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
821
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
822
|
+
* and self-correct.
|
|
823
|
+
*
|
|
824
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
825
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
826
|
+
* should be reported as an MCP error response.
|
|
827
|
+
*/
|
|
828
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
829
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
830
|
+
/**
|
|
831
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
832
|
+
* for notes on _meta usage.
|
|
833
|
+
*/
|
|
834
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
835
|
+
}, {
|
|
836
|
+
/**
|
|
837
|
+
* A list of content objects that represent the result of the tool call.
|
|
838
|
+
*
|
|
839
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
840
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
841
|
+
*/
|
|
842
|
+
content: z.ZodDefault<z.ZodArray<z.ZodUnion<[
|
|
843
|
+
z.ZodObject<{
|
|
844
|
+
type: z.ZodLiteral<"text">;
|
|
845
|
+
/**
|
|
846
|
+
* The text content of the message.
|
|
847
|
+
*/
|
|
848
|
+
text: z.ZodString;
|
|
849
|
+
/**
|
|
850
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
851
|
+
* for notes on _meta usage.
|
|
852
|
+
*/
|
|
853
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
854
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
855
|
+
type: z.ZodLiteral<"text">;
|
|
856
|
+
/**
|
|
857
|
+
* The text content of the message.
|
|
858
|
+
*/
|
|
859
|
+
text: z.ZodString;
|
|
860
|
+
/**
|
|
861
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
862
|
+
* for notes on _meta usage.
|
|
863
|
+
*/
|
|
864
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
865
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
866
|
+
type: z.ZodLiteral<"text">;
|
|
867
|
+
/**
|
|
868
|
+
* The text content of the message.
|
|
869
|
+
*/
|
|
870
|
+
text: z.ZodString;
|
|
871
|
+
/**
|
|
872
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
873
|
+
* for notes on _meta usage.
|
|
874
|
+
*/
|
|
875
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
876
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
877
|
+
z.ZodObject<{
|
|
878
|
+
type: z.ZodLiteral<"image">;
|
|
879
|
+
/**
|
|
880
|
+
* The base64-encoded image data.
|
|
881
|
+
*/
|
|
882
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
883
|
+
/**
|
|
884
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
885
|
+
*/
|
|
886
|
+
mimeType: z.ZodString;
|
|
887
|
+
/**
|
|
888
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
889
|
+
* for notes on _meta usage.
|
|
890
|
+
*/
|
|
891
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
892
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
893
|
+
type: z.ZodLiteral<"image">;
|
|
894
|
+
/**
|
|
895
|
+
* The base64-encoded image data.
|
|
896
|
+
*/
|
|
897
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
898
|
+
/**
|
|
899
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
900
|
+
*/
|
|
901
|
+
mimeType: z.ZodString;
|
|
902
|
+
/**
|
|
903
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
904
|
+
* for notes on _meta usage.
|
|
905
|
+
*/
|
|
906
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
907
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
908
|
+
type: z.ZodLiteral<"image">;
|
|
909
|
+
/**
|
|
910
|
+
* The base64-encoded image data.
|
|
911
|
+
*/
|
|
912
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
913
|
+
/**
|
|
914
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
915
|
+
*/
|
|
916
|
+
mimeType: z.ZodString;
|
|
917
|
+
/**
|
|
918
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
919
|
+
* for notes on _meta usage.
|
|
920
|
+
*/
|
|
921
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
922
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
923
|
+
z.ZodObject<{
|
|
924
|
+
type: z.ZodLiteral<"audio">;
|
|
925
|
+
/**
|
|
926
|
+
* The base64-encoded audio data.
|
|
927
|
+
*/
|
|
928
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
929
|
+
/**
|
|
930
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
931
|
+
*/
|
|
932
|
+
mimeType: z.ZodString;
|
|
933
|
+
/**
|
|
934
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
935
|
+
* for notes on _meta usage.
|
|
936
|
+
*/
|
|
937
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
938
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
939
|
+
type: z.ZodLiteral<"audio">;
|
|
940
|
+
/**
|
|
941
|
+
* The base64-encoded audio data.
|
|
942
|
+
*/
|
|
943
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
944
|
+
/**
|
|
945
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
946
|
+
*/
|
|
947
|
+
mimeType: z.ZodString;
|
|
948
|
+
/**
|
|
949
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
950
|
+
* for notes on _meta usage.
|
|
951
|
+
*/
|
|
952
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
953
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
954
|
+
type: z.ZodLiteral<"audio">;
|
|
955
|
+
/**
|
|
956
|
+
* The base64-encoded audio data.
|
|
957
|
+
*/
|
|
958
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
959
|
+
/**
|
|
960
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
961
|
+
*/
|
|
962
|
+
mimeType: z.ZodString;
|
|
963
|
+
/**
|
|
964
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
965
|
+
* for notes on _meta usage.
|
|
966
|
+
*/
|
|
967
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
968
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
969
|
+
z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
970
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
971
|
+
name: z.ZodString;
|
|
972
|
+
/**
|
|
973
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
974
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
975
|
+
*
|
|
976
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
977
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
978
|
+
* if present).
|
|
979
|
+
*/
|
|
980
|
+
title: z.ZodOptional<z.ZodString>;
|
|
981
|
+
}, {
|
|
982
|
+
/**
|
|
983
|
+
* The URI of this resource.
|
|
984
|
+
*/
|
|
985
|
+
uri: z.ZodString;
|
|
986
|
+
/**
|
|
987
|
+
* A description of what this resource represents.
|
|
988
|
+
*
|
|
989
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
990
|
+
*/
|
|
991
|
+
description: z.ZodOptional<z.ZodString>;
|
|
992
|
+
/**
|
|
993
|
+
* The MIME type of this resource, if known.
|
|
994
|
+
*/
|
|
995
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
996
|
+
/**
|
|
997
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
998
|
+
* for notes on _meta usage.
|
|
999
|
+
*/
|
|
1000
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1001
|
+
}>, {
|
|
1002
|
+
/**
|
|
1003
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
1004
|
+
*
|
|
1005
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
1006
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
1007
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
1008
|
+
*
|
|
1009
|
+
* Clients that support rendering icons SHOULD also support:
|
|
1010
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
1011
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
1012
|
+
*/
|
|
1013
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1014
|
+
/**
|
|
1015
|
+
* URL or data URI for the icon.
|
|
1016
|
+
*/
|
|
1017
|
+
src: z.ZodString;
|
|
1018
|
+
/**
|
|
1019
|
+
* Optional MIME type for the icon.
|
|
1020
|
+
*/
|
|
1021
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
/**
|
|
1023
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1024
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1025
|
+
*
|
|
1026
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1027
|
+
*/
|
|
1028
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1029
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1030
|
+
/**
|
|
1031
|
+
* URL or data URI for the icon.
|
|
1032
|
+
*/
|
|
1033
|
+
src: z.ZodString;
|
|
1034
|
+
/**
|
|
1035
|
+
* Optional MIME type for the icon.
|
|
1036
|
+
*/
|
|
1037
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
/**
|
|
1039
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1040
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1041
|
+
*
|
|
1042
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1043
|
+
*/
|
|
1044
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1045
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1046
|
+
/**
|
|
1047
|
+
* URL or data URI for the icon.
|
|
1048
|
+
*/
|
|
1049
|
+
src: z.ZodString;
|
|
1050
|
+
/**
|
|
1051
|
+
* Optional MIME type for the icon.
|
|
1052
|
+
*/
|
|
1053
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1056
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1057
|
+
*
|
|
1058
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1059
|
+
*/
|
|
1060
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1061
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1062
|
+
}>, {
|
|
1063
|
+
type: z.ZodLiteral<"resource_link">;
|
|
1064
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1065
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
1066
|
+
name: z.ZodString;
|
|
1067
|
+
/**
|
|
1068
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
1069
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
1070
|
+
*
|
|
1071
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
1072
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
1073
|
+
* if present).
|
|
1074
|
+
*/
|
|
1075
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
}, {
|
|
1077
|
+
/**
|
|
1078
|
+
* The URI of this resource.
|
|
1079
|
+
*/
|
|
1080
|
+
uri: z.ZodString;
|
|
1081
|
+
/**
|
|
1082
|
+
* A description of what this resource represents.
|
|
1083
|
+
*
|
|
1084
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
1085
|
+
*/
|
|
1086
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
/**
|
|
1088
|
+
* The MIME type of this resource, if known.
|
|
1089
|
+
*/
|
|
1090
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
/**
|
|
1092
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1093
|
+
* for notes on _meta usage.
|
|
1094
|
+
*/
|
|
1095
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1096
|
+
}>, {
|
|
1097
|
+
/**
|
|
1098
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
1099
|
+
*
|
|
1100
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
1101
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
1102
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
1103
|
+
*
|
|
1104
|
+
* Clients that support rendering icons SHOULD also support:
|
|
1105
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
1106
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
1107
|
+
*/
|
|
1108
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1109
|
+
/**
|
|
1110
|
+
* URL or data URI for the icon.
|
|
1111
|
+
*/
|
|
1112
|
+
src: z.ZodString;
|
|
1113
|
+
/**
|
|
1114
|
+
* Optional MIME type for the icon.
|
|
1115
|
+
*/
|
|
1116
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
/**
|
|
1118
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1119
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1120
|
+
*
|
|
1121
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1122
|
+
*/
|
|
1123
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1124
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1125
|
+
/**
|
|
1126
|
+
* URL or data URI for the icon.
|
|
1127
|
+
*/
|
|
1128
|
+
src: z.ZodString;
|
|
1129
|
+
/**
|
|
1130
|
+
* Optional MIME type for the icon.
|
|
1131
|
+
*/
|
|
1132
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1135
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1136
|
+
*
|
|
1137
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1138
|
+
*/
|
|
1139
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1140
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1141
|
+
/**
|
|
1142
|
+
* URL or data URI for the icon.
|
|
1143
|
+
*/
|
|
1144
|
+
src: z.ZodString;
|
|
1145
|
+
/**
|
|
1146
|
+
* Optional MIME type for the icon.
|
|
1147
|
+
*/
|
|
1148
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
/**
|
|
1150
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1151
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1152
|
+
*
|
|
1153
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1154
|
+
*/
|
|
1155
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1156
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1157
|
+
}>, {
|
|
1158
|
+
type: z.ZodLiteral<"resource_link">;
|
|
1159
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1160
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
1161
|
+
name: z.ZodString;
|
|
1162
|
+
/**
|
|
1163
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
1164
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
1165
|
+
*
|
|
1166
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
1167
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
1168
|
+
* if present).
|
|
1169
|
+
*/
|
|
1170
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
}, {
|
|
1172
|
+
/**
|
|
1173
|
+
* The URI of this resource.
|
|
1174
|
+
*/
|
|
1175
|
+
uri: z.ZodString;
|
|
1176
|
+
/**
|
|
1177
|
+
* A description of what this resource represents.
|
|
1178
|
+
*
|
|
1179
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
1180
|
+
*/
|
|
1181
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1182
|
+
/**
|
|
1183
|
+
* The MIME type of this resource, if known.
|
|
1184
|
+
*/
|
|
1185
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
/**
|
|
1187
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1188
|
+
* for notes on _meta usage.
|
|
1189
|
+
*/
|
|
1190
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1191
|
+
}>, {
|
|
1192
|
+
/**
|
|
1193
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
1194
|
+
*
|
|
1195
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
1196
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
1197
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
1198
|
+
*
|
|
1199
|
+
* Clients that support rendering icons SHOULD also support:
|
|
1200
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
1201
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
1202
|
+
*/
|
|
1203
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1204
|
+
/**
|
|
1205
|
+
* URL or data URI for the icon.
|
|
1206
|
+
*/
|
|
1207
|
+
src: z.ZodString;
|
|
1208
|
+
/**
|
|
1209
|
+
* Optional MIME type for the icon.
|
|
1210
|
+
*/
|
|
1211
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1214
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1215
|
+
*
|
|
1216
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1217
|
+
*/
|
|
1218
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1219
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1220
|
+
/**
|
|
1221
|
+
* URL or data URI for the icon.
|
|
1222
|
+
*/
|
|
1223
|
+
src: z.ZodString;
|
|
1224
|
+
/**
|
|
1225
|
+
* Optional MIME type for the icon.
|
|
1226
|
+
*/
|
|
1227
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
/**
|
|
1229
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1230
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1231
|
+
*
|
|
1232
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1233
|
+
*/
|
|
1234
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1235
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1236
|
+
/**
|
|
1237
|
+
* URL or data URI for the icon.
|
|
1238
|
+
*/
|
|
1239
|
+
src: z.ZodString;
|
|
1240
|
+
/**
|
|
1241
|
+
* Optional MIME type for the icon.
|
|
1242
|
+
*/
|
|
1243
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1244
|
+
/**
|
|
1245
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1246
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1247
|
+
*
|
|
1248
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1249
|
+
*/
|
|
1250
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1251
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1252
|
+
}>, {
|
|
1253
|
+
type: z.ZodLiteral<"resource_link">;
|
|
1254
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
1255
|
+
z.ZodObject<{
|
|
1256
|
+
type: z.ZodLiteral<"resource">;
|
|
1257
|
+
resource: z.ZodUnion<[
|
|
1258
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
1259
|
+
/**
|
|
1260
|
+
* The URI of this resource.
|
|
1261
|
+
*/
|
|
1262
|
+
uri: z.ZodString;
|
|
1263
|
+
/**
|
|
1264
|
+
* The MIME type of this resource, if known.
|
|
1265
|
+
*/
|
|
1266
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
/**
|
|
1268
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1269
|
+
* for notes on _meta usage.
|
|
1270
|
+
*/
|
|
1271
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1272
|
+
}, {
|
|
1273
|
+
/**
|
|
1274
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1275
|
+
*/
|
|
1276
|
+
text: z.ZodString;
|
|
1277
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
1278
|
+
/**
|
|
1279
|
+
* The URI of this resource.
|
|
1280
|
+
*/
|
|
1281
|
+
uri: z.ZodString;
|
|
1282
|
+
/**
|
|
1283
|
+
* The MIME type of this resource, if known.
|
|
1284
|
+
*/
|
|
1285
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1286
|
+
/**
|
|
1287
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1288
|
+
* for notes on _meta usage.
|
|
1289
|
+
*/
|
|
1290
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1291
|
+
}, {
|
|
1292
|
+
/**
|
|
1293
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1294
|
+
*/
|
|
1295
|
+
text: z.ZodString;
|
|
1296
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
1297
|
+
/**
|
|
1298
|
+
* The URI of this resource.
|
|
1299
|
+
*/
|
|
1300
|
+
uri: z.ZodString;
|
|
1301
|
+
/**
|
|
1302
|
+
* The MIME type of this resource, if known.
|
|
1303
|
+
*/
|
|
1304
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
/**
|
|
1306
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1307
|
+
* for notes on _meta usage.
|
|
1308
|
+
*/
|
|
1309
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1310
|
+
}, {
|
|
1311
|
+
/**
|
|
1312
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1313
|
+
*/
|
|
1314
|
+
text: z.ZodString;
|
|
1315
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
1316
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
1317
|
+
/**
|
|
1318
|
+
* The URI of this resource.
|
|
1319
|
+
*/
|
|
1320
|
+
uri: z.ZodString;
|
|
1321
|
+
/**
|
|
1322
|
+
* The MIME type of this resource, if known.
|
|
1323
|
+
*/
|
|
1324
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
/**
|
|
1326
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1327
|
+
* for notes on _meta usage.
|
|
1328
|
+
*/
|
|
1329
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1330
|
+
}, {
|
|
1331
|
+
/**
|
|
1332
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1333
|
+
*/
|
|
1334
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1335
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
1336
|
+
/**
|
|
1337
|
+
* The URI of this resource.
|
|
1338
|
+
*/
|
|
1339
|
+
uri: z.ZodString;
|
|
1340
|
+
/**
|
|
1341
|
+
* The MIME type of this resource, if known.
|
|
1342
|
+
*/
|
|
1343
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1344
|
+
/**
|
|
1345
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1346
|
+
* for notes on _meta usage.
|
|
1347
|
+
*/
|
|
1348
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1349
|
+
}, {
|
|
1350
|
+
/**
|
|
1351
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1352
|
+
*/
|
|
1353
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1354
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
1355
|
+
/**
|
|
1356
|
+
* The URI of this resource.
|
|
1357
|
+
*/
|
|
1358
|
+
uri: z.ZodString;
|
|
1359
|
+
/**
|
|
1360
|
+
* The MIME type of this resource, if known.
|
|
1361
|
+
*/
|
|
1362
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
/**
|
|
1364
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1365
|
+
* for notes on _meta usage.
|
|
1366
|
+
*/
|
|
1367
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1368
|
+
}, {
|
|
1369
|
+
/**
|
|
1370
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1371
|
+
*/
|
|
1372
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1373
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
1374
|
+
]>;
|
|
1375
|
+
/**
|
|
1376
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1377
|
+
* for notes on _meta usage.
|
|
1378
|
+
*/
|
|
1379
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1380
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1381
|
+
type: z.ZodLiteral<"resource">;
|
|
1382
|
+
resource: z.ZodUnion<[
|
|
1383
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
1384
|
+
/**
|
|
1385
|
+
* The URI of this resource.
|
|
1386
|
+
*/
|
|
1387
|
+
uri: z.ZodString;
|
|
1388
|
+
/**
|
|
1389
|
+
* The MIME type of this resource, if known.
|
|
1390
|
+
*/
|
|
1391
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1392
|
+
/**
|
|
1393
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1394
|
+
* for notes on _meta usage.
|
|
1395
|
+
*/
|
|
1396
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1397
|
+
}, {
|
|
1398
|
+
/**
|
|
1399
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1400
|
+
*/
|
|
1401
|
+
text: z.ZodString;
|
|
1402
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
1403
|
+
/**
|
|
1404
|
+
* The URI of this resource.
|
|
1405
|
+
*/
|
|
1406
|
+
uri: z.ZodString;
|
|
1407
|
+
/**
|
|
1408
|
+
* The MIME type of this resource, if known.
|
|
1409
|
+
*/
|
|
1410
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1411
|
+
/**
|
|
1412
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1413
|
+
* for notes on _meta usage.
|
|
1414
|
+
*/
|
|
1415
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1416
|
+
}, {
|
|
1417
|
+
/**
|
|
1418
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1419
|
+
*/
|
|
1420
|
+
text: z.ZodString;
|
|
1421
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
1422
|
+
/**
|
|
1423
|
+
* The URI of this resource.
|
|
1424
|
+
*/
|
|
1425
|
+
uri: z.ZodString;
|
|
1426
|
+
/**
|
|
1427
|
+
* The MIME type of this resource, if known.
|
|
1428
|
+
*/
|
|
1429
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
/**
|
|
1431
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1432
|
+
* for notes on _meta usage.
|
|
1433
|
+
*/
|
|
1434
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1435
|
+
}, {
|
|
1436
|
+
/**
|
|
1437
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1438
|
+
*/
|
|
1439
|
+
text: z.ZodString;
|
|
1440
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
1441
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
1442
|
+
/**
|
|
1443
|
+
* The URI of this resource.
|
|
1444
|
+
*/
|
|
1445
|
+
uri: z.ZodString;
|
|
1446
|
+
/**
|
|
1447
|
+
* The MIME type of this resource, if known.
|
|
1448
|
+
*/
|
|
1449
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1450
|
+
/**
|
|
1451
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1452
|
+
* for notes on _meta usage.
|
|
1453
|
+
*/
|
|
1454
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1455
|
+
}, {
|
|
1456
|
+
/**
|
|
1457
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1458
|
+
*/
|
|
1459
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1460
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
1461
|
+
/**
|
|
1462
|
+
* The URI of this resource.
|
|
1463
|
+
*/
|
|
1464
|
+
uri: z.ZodString;
|
|
1465
|
+
/**
|
|
1466
|
+
* The MIME type of this resource, if known.
|
|
1467
|
+
*/
|
|
1468
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1469
|
+
/**
|
|
1470
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1471
|
+
* for notes on _meta usage.
|
|
1472
|
+
*/
|
|
1473
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1474
|
+
}, {
|
|
1475
|
+
/**
|
|
1476
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1477
|
+
*/
|
|
1478
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1479
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
1480
|
+
/**
|
|
1481
|
+
* The URI of this resource.
|
|
1482
|
+
*/
|
|
1483
|
+
uri: z.ZodString;
|
|
1484
|
+
/**
|
|
1485
|
+
* The MIME type of this resource, if known.
|
|
1486
|
+
*/
|
|
1487
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1488
|
+
/**
|
|
1489
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1490
|
+
* for notes on _meta usage.
|
|
1491
|
+
*/
|
|
1492
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1493
|
+
}, {
|
|
1494
|
+
/**
|
|
1495
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1496
|
+
*/
|
|
1497
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1498
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
1499
|
+
]>;
|
|
1500
|
+
/**
|
|
1501
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1502
|
+
* for notes on _meta usage.
|
|
1503
|
+
*/
|
|
1504
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1505
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1506
|
+
type: z.ZodLiteral<"resource">;
|
|
1507
|
+
resource: z.ZodUnion<[
|
|
1508
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
1509
|
+
/**
|
|
1510
|
+
* The URI of this resource.
|
|
1511
|
+
*/
|
|
1512
|
+
uri: z.ZodString;
|
|
1513
|
+
/**
|
|
1514
|
+
* The MIME type of this resource, if known.
|
|
1515
|
+
*/
|
|
1516
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1517
|
+
/**
|
|
1518
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1519
|
+
* for notes on _meta usage.
|
|
1520
|
+
*/
|
|
1521
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1522
|
+
}, {
|
|
1523
|
+
/**
|
|
1524
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1525
|
+
*/
|
|
1526
|
+
text: z.ZodString;
|
|
1527
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
1528
|
+
/**
|
|
1529
|
+
* The URI of this resource.
|
|
1530
|
+
*/
|
|
1531
|
+
uri: z.ZodString;
|
|
1532
|
+
/**
|
|
1533
|
+
* The MIME type of this resource, if known.
|
|
1534
|
+
*/
|
|
1535
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
/**
|
|
1537
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1538
|
+
* for notes on _meta usage.
|
|
1539
|
+
*/
|
|
1540
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1541
|
+
}, {
|
|
1542
|
+
/**
|
|
1543
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1544
|
+
*/
|
|
1545
|
+
text: z.ZodString;
|
|
1546
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
1547
|
+
/**
|
|
1548
|
+
* The URI of this resource.
|
|
1549
|
+
*/
|
|
1550
|
+
uri: z.ZodString;
|
|
1551
|
+
/**
|
|
1552
|
+
* The MIME type of this resource, if known.
|
|
1553
|
+
*/
|
|
1554
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
/**
|
|
1556
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1557
|
+
* for notes on _meta usage.
|
|
1558
|
+
*/
|
|
1559
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1560
|
+
}, {
|
|
1561
|
+
/**
|
|
1562
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
1563
|
+
*/
|
|
1564
|
+
text: z.ZodString;
|
|
1565
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
1566
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
1567
|
+
/**
|
|
1568
|
+
* The URI of this resource.
|
|
1569
|
+
*/
|
|
1570
|
+
uri: z.ZodString;
|
|
1571
|
+
/**
|
|
1572
|
+
* The MIME type of this resource, if known.
|
|
1573
|
+
*/
|
|
1574
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
/**
|
|
1576
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1577
|
+
* for notes on _meta usage.
|
|
1578
|
+
*/
|
|
1579
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1580
|
+
}, {
|
|
1581
|
+
/**
|
|
1582
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1583
|
+
*/
|
|
1584
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1585
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
1586
|
+
/**
|
|
1587
|
+
* The URI of this resource.
|
|
1588
|
+
*/
|
|
1589
|
+
uri: z.ZodString;
|
|
1590
|
+
/**
|
|
1591
|
+
* The MIME type of this resource, if known.
|
|
1592
|
+
*/
|
|
1593
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
/**
|
|
1595
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1596
|
+
* for notes on _meta usage.
|
|
1597
|
+
*/
|
|
1598
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1599
|
+
}, {
|
|
1600
|
+
/**
|
|
1601
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1602
|
+
*/
|
|
1603
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1604
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
1605
|
+
/**
|
|
1606
|
+
* The URI of this resource.
|
|
1607
|
+
*/
|
|
1608
|
+
uri: z.ZodString;
|
|
1609
|
+
/**
|
|
1610
|
+
* The MIME type of this resource, if known.
|
|
1611
|
+
*/
|
|
1612
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
/**
|
|
1614
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1615
|
+
* for notes on _meta usage.
|
|
1616
|
+
*/
|
|
1617
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1618
|
+
}, {
|
|
1619
|
+
/**
|
|
1620
|
+
* A base64-encoded string representing the binary data of the item.
|
|
1621
|
+
*/
|
|
1622
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
1623
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
1624
|
+
]>;
|
|
1625
|
+
/**
|
|
1626
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1627
|
+
* for notes on _meta usage.
|
|
1628
|
+
*/
|
|
1629
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1630
|
+
}, z.ZodTypeAny, "passthrough">>
|
|
1631
|
+
]>, "many">>;
|
|
1632
|
+
/**
|
|
1633
|
+
* An object containing structured tool output.
|
|
1634
|
+
*
|
|
1635
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
1636
|
+
*/
|
|
1637
|
+
structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1638
|
+
/**
|
|
1639
|
+
* Whether the tool call ended in an error.
|
|
1640
|
+
*
|
|
1641
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
1642
|
+
*
|
|
1643
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
1644
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
1645
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
1646
|
+
* and self-correct.
|
|
1647
|
+
*
|
|
1648
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
1649
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
1650
|
+
* should be reported as an MCP error response.
|
|
1651
|
+
*/
|
|
1652
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
1653
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
1654
|
+
/**
|
|
1655
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1656
|
+
* for notes on _meta usage.
|
|
1657
|
+
*/
|
|
1658
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1659
|
+
}, {
|
|
1660
|
+
/**
|
|
1661
|
+
* A list of content objects that represent the result of the tool call.
|
|
1662
|
+
*
|
|
1663
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
1664
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
1665
|
+
*/
|
|
1666
|
+
content: z.ZodDefault<z.ZodArray<z.ZodUnion<[
|
|
1667
|
+
z.ZodObject<{
|
|
1668
|
+
type: z.ZodLiteral<"text">;
|
|
1669
|
+
/**
|
|
1670
|
+
* The text content of the message.
|
|
1671
|
+
*/
|
|
1672
|
+
text: z.ZodString;
|
|
1673
|
+
/**
|
|
1674
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1675
|
+
* for notes on _meta usage.
|
|
1676
|
+
*/
|
|
1677
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1678
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1679
|
+
type: z.ZodLiteral<"text">;
|
|
1680
|
+
/**
|
|
1681
|
+
* The text content of the message.
|
|
1682
|
+
*/
|
|
1683
|
+
text: z.ZodString;
|
|
1684
|
+
/**
|
|
1685
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1686
|
+
* for notes on _meta usage.
|
|
1687
|
+
*/
|
|
1688
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1689
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1690
|
+
type: z.ZodLiteral<"text">;
|
|
1691
|
+
/**
|
|
1692
|
+
* The text content of the message.
|
|
1693
|
+
*/
|
|
1694
|
+
text: z.ZodString;
|
|
1695
|
+
/**
|
|
1696
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1697
|
+
* for notes on _meta usage.
|
|
1698
|
+
*/
|
|
1699
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1700
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
1701
|
+
z.ZodObject<{
|
|
1702
|
+
type: z.ZodLiteral<"image">;
|
|
1703
|
+
/**
|
|
1704
|
+
* The base64-encoded image data.
|
|
1705
|
+
*/
|
|
1706
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
1707
|
+
/**
|
|
1708
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
1709
|
+
*/
|
|
1710
|
+
mimeType: z.ZodString;
|
|
1711
|
+
/**
|
|
1712
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1713
|
+
* for notes on _meta usage.
|
|
1714
|
+
*/
|
|
1715
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1716
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1717
|
+
type: z.ZodLiteral<"image">;
|
|
1718
|
+
/**
|
|
1719
|
+
* The base64-encoded image data.
|
|
1720
|
+
*/
|
|
1721
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
1722
|
+
/**
|
|
1723
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
1724
|
+
*/
|
|
1725
|
+
mimeType: z.ZodString;
|
|
1726
|
+
/**
|
|
1727
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1728
|
+
* for notes on _meta usage.
|
|
1729
|
+
*/
|
|
1730
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1731
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1732
|
+
type: z.ZodLiteral<"image">;
|
|
1733
|
+
/**
|
|
1734
|
+
* The base64-encoded image data.
|
|
1735
|
+
*/
|
|
1736
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
1737
|
+
/**
|
|
1738
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
1739
|
+
*/
|
|
1740
|
+
mimeType: z.ZodString;
|
|
1741
|
+
/**
|
|
1742
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1743
|
+
* for notes on _meta usage.
|
|
1744
|
+
*/
|
|
1745
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1746
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
1747
|
+
z.ZodObject<{
|
|
1748
|
+
type: z.ZodLiteral<"audio">;
|
|
1749
|
+
/**
|
|
1750
|
+
* The base64-encoded audio data.
|
|
1751
|
+
*/
|
|
1752
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
1753
|
+
/**
|
|
1754
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
1755
|
+
*/
|
|
1756
|
+
mimeType: z.ZodString;
|
|
1757
|
+
/**
|
|
1758
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1759
|
+
* for notes on _meta usage.
|
|
1760
|
+
*/
|
|
1761
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1762
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1763
|
+
type: z.ZodLiteral<"audio">;
|
|
1764
|
+
/**
|
|
1765
|
+
* The base64-encoded audio data.
|
|
1766
|
+
*/
|
|
1767
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
1768
|
+
/**
|
|
1769
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
1770
|
+
*/
|
|
1771
|
+
mimeType: z.ZodString;
|
|
1772
|
+
/**
|
|
1773
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1774
|
+
* for notes on _meta usage.
|
|
1775
|
+
*/
|
|
1776
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1777
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1778
|
+
type: z.ZodLiteral<"audio">;
|
|
1779
|
+
/**
|
|
1780
|
+
* The base64-encoded audio data.
|
|
1781
|
+
*/
|
|
1782
|
+
data: z.ZodEffects<z.ZodString, string, string>;
|
|
1783
|
+
/**
|
|
1784
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
1785
|
+
*/
|
|
1786
|
+
mimeType: z.ZodString;
|
|
1787
|
+
/**
|
|
1788
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1789
|
+
* for notes on _meta usage.
|
|
1790
|
+
*/
|
|
1791
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1792
|
+
}, z.ZodTypeAny, "passthrough">>,
|
|
1793
|
+
z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1794
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
1795
|
+
name: z.ZodString;
|
|
1796
|
+
/**
|
|
1797
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
1798
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
1799
|
+
*
|
|
1800
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
1801
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
1802
|
+
* if present).
|
|
1803
|
+
*/
|
|
1804
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1805
|
+
}, {
|
|
1806
|
+
/**
|
|
1807
|
+
* The URI of this resource.
|
|
1808
|
+
*/
|
|
1809
|
+
uri: z.ZodString;
|
|
1810
|
+
/**
|
|
1811
|
+
* A description of what this resource represents.
|
|
1812
|
+
*
|
|
1813
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
1814
|
+
*/
|
|
1815
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1816
|
+
/**
|
|
1817
|
+
* The MIME type of this resource, if known.
|
|
1818
|
+
*/
|
|
1819
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1820
|
+
/**
|
|
1821
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1822
|
+
* for notes on _meta usage.
|
|
1823
|
+
*/
|
|
1824
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1825
|
+
}>, {
|
|
1826
|
+
/**
|
|
1827
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
1828
|
+
*
|
|
1829
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
1830
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
1831
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
1832
|
+
*
|
|
1833
|
+
* Clients that support rendering icons SHOULD also support:
|
|
1834
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
1835
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
1836
|
+
*/
|
|
1837
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1838
|
+
/**
|
|
1839
|
+
* URL or data URI for the icon.
|
|
1840
|
+
*/
|
|
1841
|
+
src: z.ZodString;
|
|
1842
|
+
/**
|
|
1843
|
+
* Optional MIME type for the icon.
|
|
1844
|
+
*/
|
|
1845
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1846
|
+
/**
|
|
1847
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1848
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1849
|
+
*
|
|
1850
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1851
|
+
*/
|
|
1852
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1853
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1854
|
+
/**
|
|
1855
|
+
* URL or data URI for the icon.
|
|
1856
|
+
*/
|
|
1857
|
+
src: z.ZodString;
|
|
1858
|
+
/**
|
|
1859
|
+
* Optional MIME type for the icon.
|
|
1860
|
+
*/
|
|
1861
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1862
|
+
/**
|
|
1863
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1864
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1865
|
+
*
|
|
1866
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1867
|
+
*/
|
|
1868
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1869
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1870
|
+
/**
|
|
1871
|
+
* URL or data URI for the icon.
|
|
1872
|
+
*/
|
|
1873
|
+
src: z.ZodString;
|
|
1874
|
+
/**
|
|
1875
|
+
* Optional MIME type for the icon.
|
|
1876
|
+
*/
|
|
1877
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1878
|
+
/**
|
|
1879
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1880
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1881
|
+
*
|
|
1882
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1883
|
+
*/
|
|
1884
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1885
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1886
|
+
}>, {
|
|
1887
|
+
type: z.ZodLiteral<"resource_link">;
|
|
1888
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1889
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
1890
|
+
name: z.ZodString;
|
|
1891
|
+
/**
|
|
1892
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
1893
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
1894
|
+
*
|
|
1895
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
1896
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
1897
|
+
* if present).
|
|
1898
|
+
*/
|
|
1899
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1900
|
+
}, {
|
|
1901
|
+
/**
|
|
1902
|
+
* The URI of this resource.
|
|
1903
|
+
*/
|
|
1904
|
+
uri: z.ZodString;
|
|
1905
|
+
/**
|
|
1906
|
+
* A description of what this resource represents.
|
|
1907
|
+
*
|
|
1908
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
1909
|
+
*/
|
|
1910
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1911
|
+
/**
|
|
1912
|
+
* The MIME type of this resource, if known.
|
|
1913
|
+
*/
|
|
1914
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1915
|
+
/**
|
|
1916
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
1917
|
+
* for notes on _meta usage.
|
|
1918
|
+
*/
|
|
1919
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1920
|
+
}>, {
|
|
1921
|
+
/**
|
|
1922
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
1923
|
+
*
|
|
1924
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
1925
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
1926
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
1927
|
+
*
|
|
1928
|
+
* Clients that support rendering icons SHOULD also support:
|
|
1929
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
1930
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
1931
|
+
*/
|
|
1932
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1933
|
+
/**
|
|
1934
|
+
* URL or data URI for the icon.
|
|
1935
|
+
*/
|
|
1936
|
+
src: z.ZodString;
|
|
1937
|
+
/**
|
|
1938
|
+
* Optional MIME type for the icon.
|
|
1939
|
+
*/
|
|
1940
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1941
|
+
/**
|
|
1942
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1943
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1944
|
+
*
|
|
1945
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1946
|
+
*/
|
|
1947
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1948
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1949
|
+
/**
|
|
1950
|
+
* URL or data URI for the icon.
|
|
1951
|
+
*/
|
|
1952
|
+
src: z.ZodString;
|
|
1953
|
+
/**
|
|
1954
|
+
* Optional MIME type for the icon.
|
|
1955
|
+
*/
|
|
1956
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1957
|
+
/**
|
|
1958
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1959
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1960
|
+
*
|
|
1961
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1962
|
+
*/
|
|
1963
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1964
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1965
|
+
/**
|
|
1966
|
+
* URL or data URI for the icon.
|
|
1967
|
+
*/
|
|
1968
|
+
src: z.ZodString;
|
|
1969
|
+
/**
|
|
1970
|
+
* Optional MIME type for the icon.
|
|
1971
|
+
*/
|
|
1972
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1973
|
+
/**
|
|
1974
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
1975
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
1976
|
+
*
|
|
1977
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
1978
|
+
*/
|
|
1979
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1980
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1981
|
+
}>, {
|
|
1982
|
+
type: z.ZodLiteral<"resource_link">;
|
|
1983
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1984
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
1985
|
+
name: z.ZodString;
|
|
1986
|
+
/**
|
|
1987
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
1988
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
1989
|
+
*
|
|
1990
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
1991
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
1992
|
+
* if present).
|
|
1993
|
+
*/
|
|
1994
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1995
|
+
}, {
|
|
1996
|
+
/**
|
|
1997
|
+
* The URI of this resource.
|
|
1998
|
+
*/
|
|
1999
|
+
uri: z.ZodString;
|
|
2000
|
+
/**
|
|
2001
|
+
* A description of what this resource represents.
|
|
2002
|
+
*
|
|
2003
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
2004
|
+
*/
|
|
2005
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
/**
|
|
2007
|
+
* The MIME type of this resource, if known.
|
|
2008
|
+
*/
|
|
2009
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2010
|
+
/**
|
|
2011
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2012
|
+
* for notes on _meta usage.
|
|
2013
|
+
*/
|
|
2014
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2015
|
+
}>, {
|
|
2016
|
+
/**
|
|
2017
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
2018
|
+
*
|
|
2019
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
2020
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
2021
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
2022
|
+
*
|
|
2023
|
+
* Clients that support rendering icons SHOULD also support:
|
|
2024
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
2025
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
2026
|
+
*/
|
|
2027
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2028
|
+
/**
|
|
2029
|
+
* URL or data URI for the icon.
|
|
2030
|
+
*/
|
|
2031
|
+
src: z.ZodString;
|
|
2032
|
+
/**
|
|
2033
|
+
* Optional MIME type for the icon.
|
|
2034
|
+
*/
|
|
2035
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2036
|
+
/**
|
|
2037
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
2038
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
2039
|
+
*
|
|
2040
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
2041
|
+
*/
|
|
2042
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2043
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2044
|
+
/**
|
|
2045
|
+
* URL or data URI for the icon.
|
|
2046
|
+
*/
|
|
2047
|
+
src: z.ZodString;
|
|
2048
|
+
/**
|
|
2049
|
+
* Optional MIME type for the icon.
|
|
2050
|
+
*/
|
|
2051
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
/**
|
|
2053
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
2054
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
2055
|
+
*
|
|
2056
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
2057
|
+
*/
|
|
2058
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2059
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2060
|
+
/**
|
|
2061
|
+
* URL or data URI for the icon.
|
|
2062
|
+
*/
|
|
2063
|
+
src: z.ZodString;
|
|
2064
|
+
/**
|
|
2065
|
+
* Optional MIME type for the icon.
|
|
2066
|
+
*/
|
|
2067
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2068
|
+
/**
|
|
2069
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
2070
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
2071
|
+
*
|
|
2072
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
2073
|
+
*/
|
|
2074
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2075
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2076
|
+
}>, {
|
|
2077
|
+
type: z.ZodLiteral<"resource_link">;
|
|
2078
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
2079
|
+
z.ZodObject<{
|
|
2080
|
+
type: z.ZodLiteral<"resource">;
|
|
2081
|
+
resource: z.ZodUnion<[
|
|
2082
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
2083
|
+
/**
|
|
2084
|
+
* The URI of this resource.
|
|
2085
|
+
*/
|
|
2086
|
+
uri: z.ZodString;
|
|
2087
|
+
/**
|
|
2088
|
+
* The MIME type of this resource, if known.
|
|
2089
|
+
*/
|
|
2090
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2091
|
+
/**
|
|
2092
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2093
|
+
* for notes on _meta usage.
|
|
2094
|
+
*/
|
|
2095
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2096
|
+
}, {
|
|
2097
|
+
/**
|
|
2098
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2099
|
+
*/
|
|
2100
|
+
text: z.ZodString;
|
|
2101
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
2102
|
+
/**
|
|
2103
|
+
* The URI of this resource.
|
|
2104
|
+
*/
|
|
2105
|
+
uri: z.ZodString;
|
|
2106
|
+
/**
|
|
2107
|
+
* The MIME type of this resource, if known.
|
|
2108
|
+
*/
|
|
2109
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2110
|
+
/**
|
|
2111
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2112
|
+
* for notes on _meta usage.
|
|
2113
|
+
*/
|
|
2114
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2115
|
+
}, {
|
|
2116
|
+
/**
|
|
2117
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2118
|
+
*/
|
|
2119
|
+
text: z.ZodString;
|
|
2120
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
2121
|
+
/**
|
|
2122
|
+
* The URI of this resource.
|
|
2123
|
+
*/
|
|
2124
|
+
uri: z.ZodString;
|
|
2125
|
+
/**
|
|
2126
|
+
* The MIME type of this resource, if known.
|
|
2127
|
+
*/
|
|
2128
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2129
|
+
/**
|
|
2130
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2131
|
+
* for notes on _meta usage.
|
|
2132
|
+
*/
|
|
2133
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2134
|
+
}, {
|
|
2135
|
+
/**
|
|
2136
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2137
|
+
*/
|
|
2138
|
+
text: z.ZodString;
|
|
2139
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
2140
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
2141
|
+
/**
|
|
2142
|
+
* The URI of this resource.
|
|
2143
|
+
*/
|
|
2144
|
+
uri: z.ZodString;
|
|
2145
|
+
/**
|
|
2146
|
+
* The MIME type of this resource, if known.
|
|
2147
|
+
*/
|
|
2148
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2149
|
+
/**
|
|
2150
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2151
|
+
* for notes on _meta usage.
|
|
2152
|
+
*/
|
|
2153
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2154
|
+
}, {
|
|
2155
|
+
/**
|
|
2156
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2157
|
+
*/
|
|
2158
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2159
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
2160
|
+
/**
|
|
2161
|
+
* The URI of this resource.
|
|
2162
|
+
*/
|
|
2163
|
+
uri: z.ZodString;
|
|
2164
|
+
/**
|
|
2165
|
+
* The MIME type of this resource, if known.
|
|
2166
|
+
*/
|
|
2167
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
/**
|
|
2169
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2170
|
+
* for notes on _meta usage.
|
|
2171
|
+
*/
|
|
2172
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2173
|
+
}, {
|
|
2174
|
+
/**
|
|
2175
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2176
|
+
*/
|
|
2177
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2178
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
2179
|
+
/**
|
|
2180
|
+
* The URI of this resource.
|
|
2181
|
+
*/
|
|
2182
|
+
uri: z.ZodString;
|
|
2183
|
+
/**
|
|
2184
|
+
* The MIME type of this resource, if known.
|
|
2185
|
+
*/
|
|
2186
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2187
|
+
/**
|
|
2188
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2189
|
+
* for notes on _meta usage.
|
|
2190
|
+
*/
|
|
2191
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2192
|
+
}, {
|
|
2193
|
+
/**
|
|
2194
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2195
|
+
*/
|
|
2196
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2197
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
2198
|
+
]>;
|
|
2199
|
+
/**
|
|
2200
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2201
|
+
* for notes on _meta usage.
|
|
2202
|
+
*/
|
|
2203
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2204
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2205
|
+
type: z.ZodLiteral<"resource">;
|
|
2206
|
+
resource: z.ZodUnion<[
|
|
2207
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
2208
|
+
/**
|
|
2209
|
+
* The URI of this resource.
|
|
2210
|
+
*/
|
|
2211
|
+
uri: z.ZodString;
|
|
2212
|
+
/**
|
|
2213
|
+
* The MIME type of this resource, if known.
|
|
2214
|
+
*/
|
|
2215
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2216
|
+
/**
|
|
2217
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2218
|
+
* for notes on _meta usage.
|
|
2219
|
+
*/
|
|
2220
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2221
|
+
}, {
|
|
2222
|
+
/**
|
|
2223
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2224
|
+
*/
|
|
2225
|
+
text: z.ZodString;
|
|
2226
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
2227
|
+
/**
|
|
2228
|
+
* The URI of this resource.
|
|
2229
|
+
*/
|
|
2230
|
+
uri: z.ZodString;
|
|
2231
|
+
/**
|
|
2232
|
+
* The MIME type of this resource, if known.
|
|
2233
|
+
*/
|
|
2234
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2235
|
+
/**
|
|
2236
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2237
|
+
* for notes on _meta usage.
|
|
2238
|
+
*/
|
|
2239
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2240
|
+
}, {
|
|
2241
|
+
/**
|
|
2242
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2243
|
+
*/
|
|
2244
|
+
text: z.ZodString;
|
|
2245
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
2246
|
+
/**
|
|
2247
|
+
* The URI of this resource.
|
|
2248
|
+
*/
|
|
2249
|
+
uri: z.ZodString;
|
|
2250
|
+
/**
|
|
2251
|
+
* The MIME type of this resource, if known.
|
|
2252
|
+
*/
|
|
2253
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2254
|
+
/**
|
|
2255
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2256
|
+
* for notes on _meta usage.
|
|
2257
|
+
*/
|
|
2258
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2259
|
+
}, {
|
|
2260
|
+
/**
|
|
2261
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2262
|
+
*/
|
|
2263
|
+
text: z.ZodString;
|
|
2264
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
2265
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
2266
|
+
/**
|
|
2267
|
+
* The URI of this resource.
|
|
2268
|
+
*/
|
|
2269
|
+
uri: z.ZodString;
|
|
2270
|
+
/**
|
|
2271
|
+
* The MIME type of this resource, if known.
|
|
2272
|
+
*/
|
|
2273
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2274
|
+
/**
|
|
2275
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2276
|
+
* for notes on _meta usage.
|
|
2277
|
+
*/
|
|
2278
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2279
|
+
}, {
|
|
2280
|
+
/**
|
|
2281
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2282
|
+
*/
|
|
2283
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2284
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
2285
|
+
/**
|
|
2286
|
+
* The URI of this resource.
|
|
2287
|
+
*/
|
|
2288
|
+
uri: z.ZodString;
|
|
2289
|
+
/**
|
|
2290
|
+
* The MIME type of this resource, if known.
|
|
2291
|
+
*/
|
|
2292
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
/**
|
|
2294
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2295
|
+
* for notes on _meta usage.
|
|
2296
|
+
*/
|
|
2297
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2298
|
+
}, {
|
|
2299
|
+
/**
|
|
2300
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2301
|
+
*/
|
|
2302
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2303
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
2304
|
+
/**
|
|
2305
|
+
* The URI of this resource.
|
|
2306
|
+
*/
|
|
2307
|
+
uri: z.ZodString;
|
|
2308
|
+
/**
|
|
2309
|
+
* The MIME type of this resource, if known.
|
|
2310
|
+
*/
|
|
2311
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2312
|
+
/**
|
|
2313
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2314
|
+
* for notes on _meta usage.
|
|
2315
|
+
*/
|
|
2316
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2317
|
+
}, {
|
|
2318
|
+
/**
|
|
2319
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2320
|
+
*/
|
|
2321
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2322
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
2323
|
+
]>;
|
|
2324
|
+
/**
|
|
2325
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2326
|
+
* for notes on _meta usage.
|
|
2327
|
+
*/
|
|
2328
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2329
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2330
|
+
type: z.ZodLiteral<"resource">;
|
|
2331
|
+
resource: z.ZodUnion<[
|
|
2332
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
2333
|
+
/**
|
|
2334
|
+
* The URI of this resource.
|
|
2335
|
+
*/
|
|
2336
|
+
uri: z.ZodString;
|
|
2337
|
+
/**
|
|
2338
|
+
* The MIME type of this resource, if known.
|
|
2339
|
+
*/
|
|
2340
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2341
|
+
/**
|
|
2342
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2343
|
+
* for notes on _meta usage.
|
|
2344
|
+
*/
|
|
2345
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2346
|
+
}, {
|
|
2347
|
+
/**
|
|
2348
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2349
|
+
*/
|
|
2350
|
+
text: z.ZodString;
|
|
2351
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
2352
|
+
/**
|
|
2353
|
+
* The URI of this resource.
|
|
2354
|
+
*/
|
|
2355
|
+
uri: z.ZodString;
|
|
2356
|
+
/**
|
|
2357
|
+
* The MIME type of this resource, if known.
|
|
2358
|
+
*/
|
|
2359
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2360
|
+
/**
|
|
2361
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2362
|
+
* for notes on _meta usage.
|
|
2363
|
+
*/
|
|
2364
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2365
|
+
}, {
|
|
2366
|
+
/**
|
|
2367
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2368
|
+
*/
|
|
2369
|
+
text: z.ZodString;
|
|
2370
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
2371
|
+
/**
|
|
2372
|
+
* The URI of this resource.
|
|
2373
|
+
*/
|
|
2374
|
+
uri: z.ZodString;
|
|
2375
|
+
/**
|
|
2376
|
+
* The MIME type of this resource, if known.
|
|
2377
|
+
*/
|
|
2378
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2379
|
+
/**
|
|
2380
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2381
|
+
* for notes on _meta usage.
|
|
2382
|
+
*/
|
|
2383
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2384
|
+
}, {
|
|
2385
|
+
/**
|
|
2386
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
2387
|
+
*/
|
|
2388
|
+
text: z.ZodString;
|
|
2389
|
+
}>, z.ZodTypeAny, "passthrough">>,
|
|
2390
|
+
z.ZodObject<z.objectUtil.extendShape<{
|
|
2391
|
+
/**
|
|
2392
|
+
* The URI of this resource.
|
|
2393
|
+
*/
|
|
2394
|
+
uri: z.ZodString;
|
|
2395
|
+
/**
|
|
2396
|
+
* The MIME type of this resource, if known.
|
|
2397
|
+
*/
|
|
2398
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2399
|
+
/**
|
|
2400
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2401
|
+
* for notes on _meta usage.
|
|
2402
|
+
*/
|
|
2403
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2404
|
+
}, {
|
|
2405
|
+
/**
|
|
2406
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2407
|
+
*/
|
|
2408
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2409
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
2410
|
+
/**
|
|
2411
|
+
* The URI of this resource.
|
|
2412
|
+
*/
|
|
2413
|
+
uri: z.ZodString;
|
|
2414
|
+
/**
|
|
2415
|
+
* The MIME type of this resource, if known.
|
|
2416
|
+
*/
|
|
2417
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2418
|
+
/**
|
|
2419
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2420
|
+
* for notes on _meta usage.
|
|
2421
|
+
*/
|
|
2422
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2423
|
+
}, {
|
|
2424
|
+
/**
|
|
2425
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2426
|
+
*/
|
|
2427
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2428
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
2429
|
+
/**
|
|
2430
|
+
* The URI of this resource.
|
|
2431
|
+
*/
|
|
2432
|
+
uri: z.ZodString;
|
|
2433
|
+
/**
|
|
2434
|
+
* The MIME type of this resource, if known.
|
|
2435
|
+
*/
|
|
2436
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2437
|
+
/**
|
|
2438
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2439
|
+
* for notes on _meta usage.
|
|
2440
|
+
*/
|
|
2441
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2442
|
+
}, {
|
|
2443
|
+
/**
|
|
2444
|
+
* A base64-encoded string representing the binary data of the item.
|
|
2445
|
+
*/
|
|
2446
|
+
blob: z.ZodEffects<z.ZodString, string, string>;
|
|
2447
|
+
}>, z.ZodTypeAny, "passthrough">>
|
|
2448
|
+
]>;
|
|
2449
|
+
/**
|
|
2450
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
2451
|
+
* for notes on _meta usage.
|
|
2452
|
+
*/
|
|
2453
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2454
|
+
}, z.ZodTypeAny, "passthrough">>
|
|
2455
|
+
]>, "many">>;
|
|
2456
|
+
/**
|
|
2457
|
+
* An object containing structured tool output.
|
|
2458
|
+
*
|
|
2459
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
2460
|
+
*/
|
|
2461
|
+
structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2462
|
+
/**
|
|
2463
|
+
* Whether the tool call ended in an error.
|
|
2464
|
+
*
|
|
2465
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
2466
|
+
*
|
|
2467
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
2468
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
2469
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
2470
|
+
* and self-correct.
|
|
2471
|
+
*
|
|
2472
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
2473
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
2474
|
+
* should be reported as an MCP error response.
|
|
2475
|
+
*/
|
|
2476
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
2477
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
2478
|
+
//# sourceMappingURL=CallToolResultSchema.d.ts.map
|