Uses of Class
io.modelcontextprotocol.spec.McpSchema.CallToolResult.Builder
Packages that use McpSchema.CallToolResult.Builder
-
Uses of McpSchema.CallToolResult.Builder in io.modelcontextprotocol.spec
Methods in io.modelcontextprotocol.spec that return McpSchema.CallToolResult.BuilderModifier and TypeMethodDescriptionMcpSchema.CallToolResult.Builder.addContent(McpSchema.Content contentItem) Adds a content item to the tool result.McpSchema.CallToolResult.Builder.addTextContent(String text) Adds a text content item to the tool result.McpSchema.CallToolResult.builder()Creates a builder forMcpSchema.CallToolResult.McpSchema.CallToolResult.Builder.content(List<McpSchema.Content> content) Sets the content list for the tool result.Sets whether the tool execution resulted in an error.McpSchema.CallToolResult.Builder.textContent(List<String> textContent) Sets the text content for the tool result.