import { z } from 'zod'; export declare const ESZod: typeof z; /** * The server's response to a tool call. */ export declare const CallToolResultSchema: z.ZodObject, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A list of content objects that represent the result of the tool call. * * If the Tool does not define an outputSchema, this field MUST be present in the result. * For backwards compatibility, this field is always present, but it may be empty. */ content: z.ZodDefault; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"text">; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"text">; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">> ]>, "many">>; /** * An object containing structured tool output. * * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema. */ structuredContent: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; /** * Whether the tool call ended in an error. * * If not set, this is assumed to be false (the call was successful). * * Any errors that originate from the tool SHOULD be reported inside the result * object, with `isError` set to true, _not_ as an MCP protocol-level error * response. Otherwise, the LLM would not be able to see that an error occurred * and self-correct. * * However, any errors in _finding_ the tool, an error indicating that the * server does not support tool calls, or any other exceptional conditions, * should be reported as an MCP error response. */ isError: z.ZodOptional; }>, "passthrough", z.ZodTypeAny, z.objectOutputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A list of content objects that represent the result of the tool call. * * If the Tool does not define an outputSchema, this field MUST be present in the result. * For backwards compatibility, this field is always present, but it may be empty. */ content: z.ZodDefault; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"text">; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"text">; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">> ]>, "many">>; /** * An object containing structured tool output. * * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema. */ structuredContent: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; /** * Whether the tool call ended in an error. * * If not set, this is assumed to be false (the call was successful). * * Any errors that originate from the tool SHOULD be reported inside the result * object, with `isError` set to true, _not_ as an MCP protocol-level error * response. Otherwise, the LLM would not be able to see that an error occurred * and self-correct. * * However, any errors in _finding_ the tool, an error indicating that the * server does not support tool calls, or any other exceptional conditions, * should be reported as an MCP error response. */ isError: z.ZodOptional; }>, z.ZodTypeAny, "passthrough">, z.objectInputType, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A list of content objects that represent the result of the tool call. * * If the Tool does not define an outputSchema, this field MUST be present in the result. * For backwards compatibility, this field is always present, but it may be empty. */ content: z.ZodDefault; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"text">; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"text">; /** * The text content of the message. */ text: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"image">; /** * The base64-encoded image data. */ data: z.ZodEffects; /** * The MIME type of the image. Different providers may support different image types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"audio">; /** * The base64-encoded audio data. */ data: z.ZodEffects; /** * The MIME type of the audio. Different providers may support different audio types. */ mimeType: z.ZodString; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">>, z.ZodObject; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; }, { /** * The URI of this resource. */ uri: z.ZodString; /** * A description of what this resource represents. * * 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. */ description: z.ZodOptional; /** * The MIME type of this resource, if known. */ mimeType: z.ZodOptional; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }>, { /** * Optional set of sized icons that the client can display in a user interface. * * Clients that support rendering icons MUST support at least the following MIME types: * - `image/png` - PNG images (safe, universal compatibility) * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) * * Clients that support rendering icons SHOULD also support: * - `image/svg+xml` - SVG images (scalable but requires security precautions) * - `image/webp` - WebP images (modern, efficient format) */ icons: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** * URL or data URI for the icon. */ src: z.ZodString; /** * Optional MIME type for the icon. */ mimeType: z.ZodOptional; /** * Optional array of strings that specify sizes at which the icon can be used. * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. * * If not provided, the client should assume that the icon can be used at any size. */ sizes: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>, "many">>; }>, { type: z.ZodLiteral<"resource_link">; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion<[ z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * The text of the item. This must only be set if the item can actually be represented as text (not binary data). */ text: z.ZodString; }>, z.ZodTypeAny, "passthrough">>, z.ZodObject; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, "passthrough", z.ZodTypeAny, z.objectOutputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">, z.objectInputType; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, { /** * A base64-encoded string representing the binary data of the item. */ blob: z.ZodEffects; }>, z.ZodTypeAny, "passthrough">> ]>; /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, z.ZodTypeAny, "passthrough">> ]>, "many">>; /** * An object containing structured tool output. * * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema. */ structuredContent: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; /** * Whether the tool call ended in an error. * * If not set, this is assumed to be false (the call was successful). * * Any errors that originate from the tool SHOULD be reported inside the result * object, with `isError` set to true, _not_ as an MCP protocol-level error * response. Otherwise, the LLM would not be able to see that an error occurred * and self-correct. * * However, any errors in _finding_ the tool, an error indicating that the * server does not support tool calls, or any other exceptional conditions, * should be reported as an MCP error response. */ isError: z.ZodOptional; }>, z.ZodTypeAny, "passthrough">>;