Uses of Interface
io.modelcontextprotocol.spec.McpSchema.Content
Packages that use McpSchema.Content
-
Uses of McpSchema.Content in io.modelcontextprotocol.spec
Classes in io.modelcontextprotocol.spec that implement McpSchema.ContentModifier and TypeClassDescriptionstatic final recordAudio provided to or from an LLM.static final recordThe contents of a resource, embedded into a prompt or tool call result.static final recordAn image provided to or from an LLM.static final recordA known resource that the server is capable of reading.static final recordText provided to or from an LLM.Methods in io.modelcontextprotocol.spec that return McpSchema.ContentModifier and TypeMethodDescriptionMcpSchema.CreateMessageResult.content()Returns the value of thecontentrecord component.McpSchema.PromptMessage.content()Returns the value of thecontentrecord component.McpSchema.SamplingMessage.content()Returns the value of thecontentrecord component.Methods in io.modelcontextprotocol.spec that return types with arguments of type McpSchema.ContentModifier and TypeMethodDescriptionMcpSchema.CallToolResult.content()Returns the value of thecontentrecord component.Methods in io.modelcontextprotocol.spec with parameters of type McpSchema.ContentModifier and TypeMethodDescriptionMcpSchema.CallToolResult.Builder.addContent(McpSchema.Content contentItem) Adds a content item to the tool result.McpSchema.CreateMessageResult.Builder.content(McpSchema.Content content) Method parameters in io.modelcontextprotocol.spec with type arguments of type McpSchema.ContentModifier and TypeMethodDescriptionMcpSchema.CallToolResult.Builder.content(List<McpSchema.Content> content) Sets the content list for the tool result.Constructors in io.modelcontextprotocol.spec with parameters of type McpSchema.ContentModifierConstructorDescriptionCreateMessageResult(McpSchema.Role role, McpSchema.Content content, String model, McpSchema.CreateMessageResult.StopReason stopReason) CreateMessageResult(McpSchema.Role role, McpSchema.Content content, String model, McpSchema.CreateMessageResult.StopReason stopReason, Map<String, Object> meta) Creates an instance of aCreateMessageResultrecord class.PromptMessage(McpSchema.Role role, McpSchema.Content content) Creates an instance of aPromptMessagerecord class.SamplingMessage(McpSchema.Role role, McpSchema.Content content) Creates an instance of aSamplingMessagerecord class.Constructor parameters in io.modelcontextprotocol.spec with type arguments of type McpSchema.ContentModifierConstructorDescriptionCallToolResult(List<McpSchema.Content> content, Boolean isError) CallToolResult(List<McpSchema.Content> content, Boolean isError, Map<String, Object> structuredContent) CallToolResult(List<McpSchema.Content> content, Boolean isError, Map<String, Object> structuredContent, Map<String, Object> meta) Creates an instance of aCallToolResultrecord class.