McpTextContent class

Blok konten teks dalam respons alat MCP.

Memperluas

Properti

text
type

Metode

toJSON()

Detail Konstruktor

McpTextContent(string)

new McpTextContent(text: string)

Parameter

text

string

Detail Properti

text

text: string

Nilai Properti

string

type

type: "text"

Nilai Properti

"text"

Detail Metode

toJSON()

function toJSON(): Record<string, unknown>

Mengembalikan

Record<string, unknown>