Record Class McpSchema.EmbeddedResource

java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
Record Components:
annotations - Optional annotations for the client
resource - The resource contents that are embedded
meta - See specification for notes on _meta usage
All Implemented Interfaces:
McpSchema.Annotated, McpSchema.Content
Enclosing class:
McpSchema

public static record McpSchema.EmbeddedResource(McpSchema.Annotations annotations, McpSchema.ResourceContents resource, Map<String,Object> meta) extends Record implements McpSchema.Annotated, McpSchema.Content
The contents of a resource, embedded into a prompt or tool call result. It is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.