McpTextContent class

Un blocco di contenuto testuale nella risposta di uno strumento MCP.

Extends

Proprietà

text
type

Metodi

toJSON()

Dettagli costruttore

McpTextContent(string)

new McpTextContent(text: string)

Parametri

text

string

Dettagli proprietà

text

text: string

Valore della proprietà

string

type

type: "text"

Valore della proprietà

"text"

Dettagli metodo

toJSON()

function toJSON(): Record<string, unknown>

Valori restituiti

Record<string, unknown>