Language

HtmlWidgetCallToolResponse Class

Definition

The wire-format response body for an htmlwidget/calltool invoke. Teams expects this shape (with responseType discriminator) rather than a bare McpUiCallToolResult.

public class HtmlWidgetCallToolResponse
type HtmlWidgetCallToolResponse = class
Public Class HtmlWidgetCallToolResponse
Inheritance
HtmlWidgetCallToolResponse

Constructors

Name Description
HtmlWidgetCallToolResponse()

Properties

Name Description
CallToolResult

The tool call result payload.

ResponseType

Discriminator that tells Teams how to interpret the response.

Methods

Name Description
FromError(String)

Creates an error response with a message.

FromText(String)

Creates a successful response with text content.

Applies to