Package io.modelcontextprotocol.spec
Interface McpSchema.ResourceContent
- All Superinterfaces:
McpSchema.BaseMetadata
- All Known Implementing Classes:
McpSchema.Resource,McpSchema.ResourceLink
- Enclosing class:
- McpSchema
A common interface for resource content, which includes metadata about the resource
such as its URI, name, description, MIME type, size, and annotations. This
interface is implemented by both
McpSchema.Resource and McpSchema.ResourceLink to
provide a consistent way to access resource metadata.-
Method Details
-
uri
String uri() -
description
String description() -
mimeType
String mimeType() -
size
Long size() -
annotations
McpSchema.Annotations annotations()
-