Class ImageContentBlock
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents an image provided to or from an LLM.
public sealed class ImageContentBlock : ContentBlock
- Inheritance
-
ImageContentBlock
- Inherited Members
- Extension Methods
Constructors
ImageContentBlock()
Initializes the instance of the ImageContentBlock class.
public ImageContentBlock()
Properties
Data
Gets or sets the base64-encoded image data.
[JsonPropertyName("data")]
public required string Data { get; set; }
Property Value
Meta
Gets or sets metadata reserved by MCP for protocol-level metadata.
[JsonPropertyName("_meta")]
public JsonObject? Meta { get; set; }
Property Value
Remarks
Implementations must not make assumptions about its contents.
MimeType
Gets or sets the MIME type (or "media type") of the content, specifying the format of the data.
[JsonPropertyName("mimeType")]
public required string MimeType { get; set; }
Property Value
Remarks
Common values include "image/png" and "image/jpeg".