Class BlobResourceContents
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the binary contents of a resource in the Model Context Protocol.
public class BlobResourceContents : ResourceContents
- Inheritance
-
BlobResourceContents
- Inherited Members
- Extension Methods
Remarks
BlobResourceContents 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 Blob property.
This class inherits from ResourceContents, which also has a sibling implementation TextResourceContents 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.
Properties
Blob
Gets or sets the base64-encoded string representing the binary data of the item.
[JsonPropertyName("blob")]
public string Blob { get; set; }