@@ -821,7 +821,7 @@ export const AudioContentSchema = z.object({
821821 * A tool call request from an assistant (LLM).
822822 * Represents the assistant's request to use a tool.
823823 */
824- export const ToolCallContentSchema = z
824+ export const ToolUseContentSchema = z
825825 . object ( {
826826 type : z . literal ( "tool_use" ) ,
827827 /**
@@ -1195,7 +1195,7 @@ export const ToolChoiceSchema = z
11951195
11961196/**
11971197 * The result of a tool execution, provided by the user (server).
1198- * Represents the outcome of invoking a tool requested via ToolCallContent .
1198+ * Represents the outcome of invoking a tool requested via ToolUseContent .
11991199 */
12001200export const ToolResultContentSchema = z
12011201 . object ( {
@@ -1239,7 +1239,7 @@ export const AssistantMessageContentSchema = z.discriminatedUnion("type", [
12391239 TextContentSchema ,
12401240 ImageContentSchema ,
12411241 AudioContentSchema ,
1242- ToolCallContentSchema ,
1242+ ToolUseContentSchema ,
12431243] ) ;
12441244
12451245/**
@@ -1340,7 +1340,7 @@ export const CreateMessageResultSchema = ResultSchema.extend({
13401340 */
13411341 role : z . literal ( "assistant" ) ,
13421342 /**
1343- * Response content. May be ToolCallContent if stopReason is "toolUse".
1343+ * Response content. May be ToolUseContent if stopReason is "toolUse".
13441344 */
13451345 content : z . union ( [ AssistantMessageContentSchema , z . array ( AssistantMessageContentSchema ) ] ) ,
13461346} ) ;
@@ -1770,7 +1770,7 @@ export type GetPromptRequest = Infer<typeof GetPromptRequestSchema>;
17701770export type TextContent = Infer < typeof TextContentSchema > ;
17711771export type ImageContent = Infer < typeof ImageContentSchema > ;
17721772export type AudioContent = Infer < typeof AudioContentSchema > ;
1773- export type ToolCallContent = Infer < typeof ToolCallContentSchema > ;
1773+ export type ToolUseContent = Infer < typeof ToolUseContentSchema > ;
17741774export type ToolResultContent = Infer < typeof ToolResultContentSchema > ;
17751775export type EmbeddedResource = Infer < typeof EmbeddedResourceSchema > ;
17761776export type ResourceLink = Infer < typeof ResourceLinkSchema > ;
0 commit comments