public static class McpSchema.CallToolResult extends Object implements McpSchema.Result
| Modifier and Type | Class and Description |
|---|---|
static class |
McpSchema.CallToolResult.Builder
Builder for
McpSchema.CallToolResult. |
| Constructor and Description |
|---|
CallToolResult(List<McpSchema.Content> content,
Boolean isError) |
CallToolResult(List<McpSchema.Content> content,
Boolean isError,
Map<String,Object> structuredContent) |
CallToolResult(String content,
Boolean isError)
Creates a new instance of
McpSchema.CallToolResult with a string containing the
tool result. |
| Modifier and Type | Method and Description |
|---|---|
static McpSchema.CallToolResult.Builder |
builder()
Creates a builder for
McpSchema.CallToolResult. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetapublic CallToolResult(List<McpSchema.Content> content, Boolean isError)
public CallToolResult(List<McpSchema.Content> content, Boolean isError, Map<String,Object> structuredContent)
public CallToolResult(String content, Boolean isError)
McpSchema.CallToolResult with a string containing the
tool result.content - The content of the tool result. This will be mapped to a
one-sized list with a McpSchema.TextContent element.isError - If true, indicates that the tool execution failed and the
content contains error information. If false or absent, indicates successful
execution.public static McpSchema.CallToolResult.Builder builder()
McpSchema.CallToolResult.Copyright © 2025. All rights reserved.