Skip to content

ui/message content format discrepancy: SEP-1865 specifies object #48

@chelojimenez

Description

@chelojimenez

The @modelcontextprotocol/ext-apps SDK sends ui/message with content as an array, but SEP-1865 specifies it as a single object.

From SEP

  // ui/message request
  {
    jsonrpc: "2.0",
    id: 2,
    method: "ui/message",
    params: {
      role: "user",
      content: {
        type: "text",
        text: string
      }
    }
  }

SDK Behavior

  {
    jsonrpc: "2.0",
    id: 2,
    method: "ui/message",
    params: {
      role: "user",
      content: [{ type: "text", text: "..." }]  // Array, not object
    }
  }

Hosts implementing strictly per SEP-1865 will fail to extract text from SDK-generated ui/message requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions