McpAudioContent class
An audio content block in an MCP tool response.
- Extends
Constructors
| Mcp |
Methods
| toJSON() |
Constructor Details
McpAudioContent(McpAudioContentInit)
Property Details
data
data: string | ArrayBuffer | Buffer
Property Value
string | ArrayBuffer | Buffer
mimeType
mimeType?: string
Property Value
string
type
type: "audio"
Property Value
"audio"
Method Details
toJSON()
function toJSON(): Record<string, unknown>
Returns
Record<string, unknown>