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

    Interface McpUiMessageRequest

    Request to send a message to the host's chat interface.

    Sent from the Guest UI to the Host when the app wants to add a message to the conversation thread. This enables interactive apps to communicate with the user through the host's chat interface.

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

    interface McpUiMessageRequest {
        method: "ui/message";
        params: { content: ContentBlock[]; role: "user" };
    }
    Index

    Properties

    Properties

    method: "ui/message"
    params: { content: ContentBlock[]; role: "user" }

    Type Declaration

    • content: ContentBlock[]

      Message content blocks (text, image, etc.)

    • role: "user"

      Message role, currently only "user" is supported