Persist model-visible state for the current mounted view.
Every component in one view runtime reads and updates the same state object.
ChatGPT restores the object from window.openai.widgetState.modelContent.
Other MCP Apps hosts keep it for the iframe lifetime and receive it through
ui/update-model-context.
The state must be a JSON-serializable object and cannot contain the reserved
_uiContext key used by ModelContext.
Persist model-visible state for the current mounted view.
Every component in one view runtime reads and updates the same state object. ChatGPT restores the object from
window.openai.widgetState.modelContent. Other MCP Apps hosts keep it for the iframe lifetime and receive it throughui/update-model-context.The state must be a JSON-serializable object and cannot contain the reserved
_uiContextkey used by ModelContext.