McpTextContent class
MCP 工具响应中的文本内容块。
方法
| toJSON() |
构造函数详细信息
McpTextContent(string)
new McpTextContent(text: string)
参数
- text
-
string
属性详细信息
text
text: string
属性值
string
type
type: "text"
属性值
"text"
方法详细信息
toJSON()
function toJSON(): Record<string, unknown>
返回
Record<string, unknown>