McpImageContent class
An image content block in an MCP tool response.
- Extends
Constructors
| Mcp |
Methods
| toJSON() |
Constructor Details
McpImageContent(McpImageContentInit)
Property Details
data
data: string | ArrayBuffer | Buffer
Property Value
string | ArrayBuffer | Buffer
mimeType
mimeType?: string
Property Value
string
type
type: "image"
Property Value
"image"
Method Details
toJSON()
function toJSON(): Record<string, unknown>
Returns
Record<string, unknown>