Class ImageContent

java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ImageContent
All Implemented Interfaces:
Content

@Marshalled(typeName="image") public class ImageContent extends Object implements Content
MCP image content block (base64 data).
  • Constructor Details

  • Method Details

    • getData

      public String getData()
      Base64-encoded image bytes.
      Returns:
      The data, or null if not set.
    • setData

      public ImageContent setData(String value)
      Sets the base64 payload.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getMimeType

      public String getMimeType()
      Image MIME type (for example image/png).
      Returns:
      The MIME type, or null if not set.
    • setMimeType

      Sets the MIME type.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).