Table of Contents

Class AudioContentBlock

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents audio provided to or from an LLM.

public sealed class AudioContentBlock : ContentBlock
Inheritance
AudioContentBlock
Inherited Members
Extension Methods

Constructors

AudioContentBlock()

Initializes the instance of the AudioContentBlock class.

public AudioContentBlock()

Properties

Data

Gets or sets the base64-encoded audio data.

[JsonPropertyName("data")]
public required string Data { get; set; }

Property Value

string

Meta

Gets or sets metadata reserved by MCP for protocol-level metadata.

[JsonPropertyName("_meta")]
public JsonObject? Meta { get; set; }

Property Value

JsonObject

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

string

Remarks

Common values include "audio/wav" and "audio/mp3".