Language

McpUiCallToolResultContent Class

Definition

A content item in an MCP UI call tool result. The populated fields depend on Type: "text" uses Text; "image" and "audio" use Data and MimeType; "resource" uses Resource. Teams currently only renders "text" content; the other types are defined by the MCP spec for forward compatibility.

public class McpUiCallToolResultContent
type McpUiCallToolResultContent = class
Public Class McpUiCallToolResultContent
Inheritance
McpUiCallToolResultContent

Constructors

Name Description
McpUiCallToolResultContent()

Properties

Name Description
Data

The base64-encoded data, when Type is "image" or "audio".

MimeType

The MIME type of the data, when Type is "image" or "audio" (e.g. "image/png", "audio/wav").

Resource

The embedded resource, when Type is "resource".

Text

The text content, when Type is "text".

Type

The type of content. MCP defines: "text", "image", "audio", "resource".

Applies to