@@ -206,10 +206,10 @@ default Object progressToken() {
206206
207207 }
208208
209- public sealed interface Result extends Meta permits CallToolResult , CancelTaskResult , CompleteResult ,
210- CreateMessageResult , CreateTaskResult , ElicitResult , GetPromptResult , GetTaskResult , InitializeResult ,
211- ListPromptsResult , ListResourceTemplatesResult , ListResourcesResult , ListRootsResult , ListTasksResult ,
212- ListToolsResult , ReadResourceResult {
209+ public sealed interface Result extends Meta permits CallToolAuxResult , CallToolResult , CancelTaskResult ,
210+ CompleteResult , CreateMessageResult , CreateTaskResult , ElicitResult , GetPromptResult , GetTaskResult ,
211+ InitializeResult , ListPromptsResult , ListResourceTemplatesResult , ListResourcesResult , ListRootsResult ,
212+ ListTasksResult , ListToolsResult , ReadResourceResult {
213213
214214 }
215215
@@ -2106,6 +2106,28 @@ public static TaskStatus fromValue(String value) {
21062106
21072107 }
21082108
2109+ /**
2110+ * The server's response to a tools/call request from the client, which can be
2111+ * `CallToolResult` or `CreateTaskResult`.
2112+ *
2113+ * @param content A list of content items representing the tool's output. Each item
2114+ * can be text, an image, or an embedded resource.
2115+ * @param isError If true, indicates that the tool execution failed and the content
2116+ * contains error information. If false or absent, indicates successful execution.
2117+ * @param structuredContent An optional JSON object that represents the structured
2118+ * result of the tool call.
2119+ * @param task Task information when the tool is invoked as a task.
2120+ * @param meta See specification for notes on _meta usage
2121+ */
2122+ @ JsonInclude (JsonInclude .Include .NON_ABSENT )
2123+ @ JsonIgnoreProperties (ignoreUnknown = true )
2124+ public record CallToolAuxResult ( // @formatter:off
2125+ @ JsonProperty ("content" ) List <Content > content ,
2126+ @ JsonProperty ("isError" ) Boolean isError ,
2127+ @ JsonProperty ("structuredContent" ) Object structuredContent ,
2128+ @ JsonProperty ("task" ) Task task ,
2129+ @ JsonProperty ("_meta" ) Map <String , Object > meta ) implements Result {} // @formatter:on
2130+
21092131 /**
21102132 * The server's response to a tools/call request from the client.
21112133 *
0 commit comments