McpImageContent class

MCP 工具回應中的圖片內容區塊。

Extends

屬性

data
mimeType
type

方法

toJSON()

建構函式詳細資料

McpImageContent(McpImageContentInit)

new McpImageContent(init: McpImageContentInit)

參數

屬性詳細資料

data

data: string | ArrayBuffer | Buffer

屬性值

string | ArrayBuffer | Buffer

mimeType

mimeType?: string

屬性值

string

type

type: "image"

屬性值

"image"

方法詳細資料

toJSON()

function toJSON(): Record<string, unknown>

傳回

Record<string, unknown>