Teams HTML widgets: agent replies you can click and drag

Microsoft put HTML widgets for Teams agents in public preview: interactive views built on MCP Apps that render in chat and call the agent's tools.

A Teams agent can now answer with a live web view instead of a wall of text. The view can be a map, chart, form or table, written in HTML, CSS and JavaScript. It renders inside the message and calls the agent's tools as people use it. Microsoft put HTML widgets into public preview on December 3, 2026, according to the Microsoft 365 Developer Blog, and built them on the open MCP Apps standard.

The agent sends an extended Markdown message containing a fenced block marked html-widget. Only four fields are required:

{
"type": "widget/mcp-ui",
"name": "Launch readiness",
"domain": "https://myagent.example.com",
"html": "<!doctype html>..."
}

A widget can call a tool, send a message back to the agent, add context for the agent's next turn, open as a larger canvas, or open a link. Each widget runs sandboxed on its own domain and loads nothing from elsewhere by default. Outside resources must be listed under securityPolicy as resourceDomains or connectDomains, and Teams blocks everything else. Microsoft's quarterly Teams roundup lists the widgets alongside Extended Markdown, streaming and threaded replies as new ways to shape agent responses.

For builders, reuse is the bigger draw. Microsoft says MCP Apps UI built for another host works in Teams unchanged. HoneyHive's MCP Apps explainer lists Claude, VS Code GitHub Copilot and Microsoft 365 Copilot among the hosts as of November 2026, and notes that the ext-apps README adds ChatGPT. The same explainer says support varies by client, advises testing in each host you target, and notes that the draft spec is still changing. Under the spec it describes, tools must still return a meaningful text result when a UI exists, so hosts without MCP Apps get a plain answer.

Our reading: write the text fallback first and add the widget on top. That way one tool serves every host while rendering differences get sorted out. The launch post sends readers to two Microsoft Learn guides for everything past the four required fields, including sizing and tool-call handling. It doesn't say how a tenant turns the preview on.

Try it: Pick one reply your agent now sends as a long comparison or status list, and send it as a widget with the four required fields. To check the sandbox, have the widget fetch from a domain you haven't listed in connectDomains. According to Microsoft, Teams should block it.

Sources