Interface McpSchema.ResourceContents

All Superinterfaces:
McpSchema.Meta
All Known Implementing Classes:
McpSchema.BlobResourceContents, McpSchema.TextResourceContents
Enclosing class:
McpSchema

public static sealed interface McpSchema.ResourceContents extends McpSchema.Meta permits McpSchema.TextResourceContents, McpSchema.BlobResourceContents
The contents of a specific resource or sub-resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    The MIME type of this resource.
    uri()
    The URI of this resource.

    Methods inherited from interface io.modelcontextprotocol.spec.McpSchema.Meta

    meta
  • 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.