McpTextContent class
A text content block in an MCP tool response.
- Extends
Constructors
| Mcp |
Methods
| toJSON() |
Constructor Details
McpTextContent(string)
new McpTextContent(text: string)
Parameters
- text
-
string
Property Details
text
text: string
Property Value
string
type
type: "text"
Property Value
"text"
Method Details
toJSON()
function toJSON(): Record<string, unknown>
Returns
Record<string, unknown>