McpImageContent class

An image content block in an MCP tool response.

Extends

Properties

data
mimeType
type

Methods

toJSON()

Constructor Details

McpImageContent(McpImageContentInit)

new McpImageContent(init: McpImageContentInit)

Parameters

Property Details

data

data: string | ArrayBuffer | Buffer

Property Value

string | ArrayBuffer | Buffer

mimeType

mimeType?: string

Property Value

string

type

type: "image"

Property Value

"image"

Method Details

toJSON()

function toJSON(): Record<string, unknown>

Returns

Record<string, unknown>