using System.Text.Json.Serialization; namespace ModelContextProtocol.Protocol; /// /// Represents the binary contents of a resource in the Model Context Protocol. /// /// /// /// is used when binary data needs to be exchanged through /// the Model Context Protocol. The binary data is represented as a base64-encoded string /// in the property. /// /// /// This class inherits from , which also has a sibling implementation /// for text-based resources. When working with resources, the /// appropriate type is chosen based on the nature of the content. /// /// /// See the schema for more details. /// /// public sealed class BlobResourceContents : ResourceContents { /// /// Gets or sets the base64-encoded string representing the binary data of the item. /// [JsonPropertyName("blob")] public required string Blob { get; set; } }