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

    Interface McpUiUpdateModelContextRequest

    Request to update the agent's context without requiring a follow-up action (Guest UI -> Host).

    Unlike notifications/message which is for debugging/logging, this request is intended to update the Host's model context. Each request overwrites the previous context sent by the Guest UI. Unlike messages, context updates do not trigger follow-ups.

    The host will typically defer sending the context to the model until the next user message (including ui/message), and will only send the last update received.

    app.App.updateModelContext for the method that sends this request

    interface McpUiUpdateModelContextRequest {
        method: "ui/update-model-context";
        params: {
            content?: ContentBlock[];
            structuredContent?: Record<string, unknown>;
        };
    }
    Index

    Properties

    Properties

    method: "ui/update-model-context"
    params: {
        content?: ContentBlock[];
        structuredContent?: Record<string, unknown>;
    }

    Type Declaration

    • Optionalcontent?: ContentBlock[]

      Context content blocks (text, image, etc.).

    • OptionalstructuredContent?: Record<string, unknown>

      Structured content for machine-readable context data.