OptionalautoEnable automatic size change notifications.
When enabled, the UI automatically reports its size changes to the host using a ResizeObserver on document.body and document.documentElement. The host can then resize the UI container accordingly.
MCP Apps only - ignored in ChatGPT.
OptionalcspContent Security Policy configuration. Controls what external resources the UI can access.
OptionaldescriptionOptional description of the UI resource. Used in protocol metadata.
OptionaldomainDedicated domain for widget isolation. Advanced feature for security-sensitive applications.
ChatGPT only - ignored on MCP Apps.
HTML content - path to file or inline HTML string.
If the value starts with "<", it's treated as inline HTML. Otherwise, it's treated as a file path relative to the project root.
OptionalnameOptional display name for the UI resource. Used in protocol metadata.
OptionalprefersRequest a visible border around the widget. Hint to the host platform - may not be honored.
OptionalwidgetHuman-readable summary for the AI model (ChatGPT only).
This description helps the model understand what the widget does and when to display it. Keep it concise and informative.
Single UI resource definition
Defines an HTML-based UI component that can be bound to tools.
Example