Variable CallToolResultSchemaConst
CallToolResultSchema: ZodObject<
extendShape<
{ _meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>> },
{
content: ZodDefault<
ZodArray<
ZodUnion<
[
ZodObject<
{
_meta: ZodOptional<ZodRecord<(...), (...)>>;
text: ZodString;
type: ZodLiteral<"text">;
},
"strip",
ZodTypeAny,
{ _meta?: Record<(...), (...)>; text: string; type: "text" },
{ _meta?: Record<(...), (...)>; text: string; type: "text" },
>,
ZodObject<
{
_meta: ZodOptional<ZodRecord<(...), (...)>>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
"strip",
ZodTypeAny,
{
_meta?: Record<(...), (...)>;
data: string;
mimeType: string;
type: "image";
},
{
_meta?: Record<(...), (...)>;
data: string;
mimeType: string;
type: "image";
},
>,
ZodObject<
{
_meta: ZodOptional<ZodRecord<(...), (...)>>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
"strip",
ZodTypeAny,
{
_meta?: Record<(...), (...)>;
data: string;
mimeType: string;
type: "audio";
},
{
_meta?: Record<(...), (...)>;
data: string;
mimeType: string;
type: "audio";
},
>,
ZodObject<
extendShape<
extendShape<extendShape<(...), (...)>, { icons: ... }>,
{ type: ZodLiteral<(...)> },
>,
"strip",
ZodTypeAny,
{
_meta?: objectOutputType<(...), (...), (...)>;
description?: string;
icons?: (...)[];
mimeType?: string;
name: string;
title?: string;
type: "resource_link";
uri: string;
},
{
_meta?: objectInputType<(...), (...), (...)>;
description?: string;
icons?: (...)[];
mimeType?: string;
name: string;
title?: string;
type: "resource_link";
uri: string;
},
>,
ZodObject<
{
_meta: ZodOptional<ZodRecord<(...), (...)>>;
resource: ZodUnion<[(...), (...)]>;
type: ZodLiteral<"resource">;
},
"strip",
ZodTypeAny,
{
_meta?: Record<(...), (...)>;
resource:
| { _meta?: ...; mimeType?: ...; text: ...; uri: ... }
| { _meta?: ...; blob: ...; mimeType?: ...; uri: ... };
type: "resource";
},
{
_meta?: Record<(...), (...)>;
resource:
| { _meta?: ...; mimeType?: ...; text: ...; uri: ... }
| { _meta?: ...; blob: ...; mimeType?: ...; uri: ... };
type: "resource";
},
>,
],
>,
"many",
>,
>;
isError: ZodOptional<ZodBoolean>;
structuredContent: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{ _meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>> },
{
content: ZodDefault<
ZodArray<
ZodUnion<
[
ZodObject<
{
_meta: ZodOptional<(...)>;
text: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{ _meta?: (...)
| (...); text: string; type: "text" },
{ _meta?: (...) | (...); text: string; type: "text" },
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "image";
},
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "image";
},
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "audio";
},
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "audio";
},
>,
ZodObject<
extendShape<extendShape<(...), (...)>, { type: ... }>,
"strip",
ZodTypeAny,
{
_meta?: (...) | (...);
description?: (...) | (...);
icons?: (...) | (...);
mimeType?: (...) | (...);
name: string;
title?: (...) | (...);
type: "resource_link";
uri: string;
},
{
_meta?: (...)
| (...);
description?: (...) | (...);
icons?: (...) | (...);
mimeType?: (...) | (...);
name: string;
title?: (...) | (...);
type: "resource_link";
uri: string;
},
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
resource: ZodUnion<(...)>;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{
_meta?: (...)
| (...);
resource: (...) | (...);
type: "resource";
},
{
_meta?: (...)
| (...);
resource: (...) | (...);
type: "resource";
},
>,
],
>,
"many",
>,
>;
isError: ZodOptional<ZodBoolean>;
structuredContent: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{ _meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>> },
{
content: ZodDefault<
ZodArray<
ZodUnion<
[
ZodObject<
{
_meta: ZodOptional<(...)>;
text: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{ _meta?: (...)
| (...); text: string; type: "text" },
{ _meta?: (...) | (...); text: string; type: "text" },
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "image";
},
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "image";
},
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "audio";
},
{
_meta?: (...)
| (...);
data: string;
mimeType: string;
type: "audio";
},
>,
ZodObject<
extendShape<extendShape<(...), (...)>, { type: ... }>,
"strip",
ZodTypeAny,
{
_meta?: (...) | (...);
description?: (...) | (...);
icons?: (...) | (...);
mimeType?: (...) | (...);
name: string;
title?: (...) | (...);
type: "resource_link";
uri: string;
},
{
_meta?: (...)
| (...);
description?: (...) | (...);
icons?: (...) | (...);
mimeType?: (...) | (...);
name: string;
title?: (...) | (...);
type: "resource_link";
uri: string;
},
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
resource: ZodUnion<(...)>;
type: ZodLiteral<(...)>;
},
"strip",
ZodTypeAny,
{
_meta?: (...)
| (...);
resource: (...) | (...);
type: "resource";
},
{
_meta?: (...)
| (...);
resource: (...) | (...);
type: "resource";
},
>,
],
>,
"many",
>,
>;
isError: ZodOptional<ZodBoolean>;
structuredContent: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
>,
ZodTypeAny,
"passthrough",
>,
> = ...
The server's response to a tool call.