@modelcontextprotocol/ext-apps - v0.0.1
    Preparing search index...

    Interface McpUiSizeChangeNotification

    Notification of UI size changes (bidirectional: Guest ↔ Host).

    Guest UI → Host: Sent by the Guest UI when its rendered content size changes, typically using ResizeObserver. This helps the host adjust the iframe container. If app.App is configured with autoResize: true (default), this is sent automatically.

    Host → Guest UI: Sent by the Host when the viewport size changes (e.g., window resize, orientation change). This allows the Guest UI to adjust its layout.

    interface McpUiSizeChangeNotification {
        method: "ui/notifications/size-change";
        params: { height?: number; width?: number };
    }
    Index

    Properties

    Properties

    method: "ui/notifications/size-change"
    params: { height?: number; width?: number }

    Type Declaration

    • Optionalheight?: number

      New height in pixels

    • Optionalwidth?: number

      New width in pixels