import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * MCP call item: A direct call record for an MCP tool, including request arguments and optional output/error. */ export type MCPToolCallWithId = { type: "mcp_call"; /** * The unique ID of the message. */ id: string; approvalRequestId?: string | null | undefined; arguments: string; name: string; serverLabel: string; error?: string | undefined; output?: string | undefined; /** * The ID of the response that created this item, if any. */ responseId?: string | null | undefined; /** * Metadata from the response that created this item, if any. */ metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const MCPToolCallWithId$inboundSchema: z.ZodType; /** @internal */ export type MCPToolCallWithId$Outbound = { type: "mcp_call"; id: string; approval_request_id?: string | null | undefined; arguments: string; name: string; server_label: string; error?: string | undefined; output?: string | undefined; response_id?: string | null | undefined; metadata?: { [k: string]: string; } | null | undefined; }; /** @internal */ export declare const MCPToolCallWithId$outboundSchema: z.ZodType; export declare function mcpToolCallWithIdToJSON(mcpToolCallWithId: MCPToolCallWithId): string; export declare function mcpToolCallWithIdFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=mcptoolcallwithid.d.ts.map