Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions specification/draft/apps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,12 @@ Host SHOULD open the URL in the user's default browser or a new tab.
method: "ui/message",
params: {
role: "user",
content: {
type: "text",
text: string
}
content: [
{
type: "text",
text: string
}
]
Comment on lines +509 to +514
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The specification should document what content types are supported in the content array. While the PR description mentions supporting images (e.g., "prompting the agent with a text message and an image"), the spec only shows a single text content block.

Consider adding:

  1. A reference to the MCP SDK's ContentBlock type definition
  2. Documentation of supported content types (text, image, etc.)
  3. An example showing multiple content items in the array (e.g., text + image)

This would help implementers understand the full capabilities of this API and align with the stated goal of supporting additional use cases like multi-modal messages.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ochafik I see that the SDK supports ContentBlock as-is. There are types that are extremely cool and open up really interesting use cases, but I'm not sure hosts would know how to support and may require negotiation (e.g., audio, embedded resource). Should we limit it to text (and perhaps image if we add negotiation) for now?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@idosal let's just make it all negotiable:

export interface McpUiHostCapabilities {
  /* @description Optional support for ui/message and its content types */
  messages?: {
    text?: {};
    image?: {};
    audio?: {};
    resource?: {};
    resourceLink?: {};
  }
  ...
}

cc/ @antonpk1 fyi

}
}

Expand Down
Loading