Package io.modelcontextprotocol.spec
Interface McpSchema.ResourceContents
- All Known Implementing Classes:
McpSchema.BlobResourceContents,McpSchema.TextResourceContents
- Enclosing class:
- McpSchema
public static sealed interface McpSchema.ResourceContents
permits McpSchema.TextResourceContents, McpSchema.BlobResourceContents
The contents of a specific resource or sub-resource.
-
Method Summary
-
Method Details
-
uri
String uri()The URI of this resource.- Returns:
- the URI of this resource.
-
mimeType
String mimeType()The MIME type of this resource.- Returns:
- the MIME type of this resource.
-
meta
- Returns:
- additional metadata related to this resource.
- See Also:
-
- Specification for notes on _meta usage
-