McpTextContent class
MCP 工具回應中的文字內容區塊。
- Extends
方法
| 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>