Microsoft.Teams.Apps.HtmlWidget Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
| Name | Description |
|---|---|
| CallToolRequest |
A request from a widget to call a tool on the bot.
Sent as the value of an |
| HtmlWidgetCallToolExtensions |
Extension methods for registering HTML widget call tool invoke handlers. |
| HtmlWidgetCallToolResponse |
The wire-format response body for an |
| HtmlWidgetHelpers |
Helper methods for building and validating HTML widget messages. |
| HtmlWidgetMarkdownOptions |
Options for building an HTML widget markdown string. |
| HtmlWidgetPayload |
The JSON payload for an HTML widget, sent inside a ```html-widget code block within a Markdown message. |
| HtmlWidgetPermissions |
Permissions that the widget may request from the host. Presence of a field means the permission is requested (value should be an empty object). |
| HtmlWidgetSecurityPolicy |
The security policy for an HTML widget, controlling allowed origins for network requests, static resources, nested iframes, and base URIs. |
| InjectWidgetProtocolOptions |
Options for injecting the MCP Apps protocol into widget HTML. |
| McpUiCallToolResult |
The result of a widget's |
| McpUiCallToolResultContent |
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. |
| McpUiResource |
An embedded resource referenced by a "resource" content item. |
| McpUiUpdateModelContextParams |
The parameters of an MCP UI |
| McpUiUpdateModelContextRequest |
A widget's request to update the model context, delivered on the
|
| SecurityPolicyWarning |
A warning produced by ValidateSecurityPolicy(String, HtmlWidgetSecurityPolicy) when the widget HTML references an external origin not present in the declared security policy. |
Delegates
| Name | Description |
|---|---|
| HtmlWidgetCallToolHandler |
Delegate for handling |