Menu

1 / 5

A2UI Protocol: How Agents Stream Layout Data Instead of HTML to Native UI Components

DEV Community: mobile·mech.app·about 13 hours ago
#d4ovd4C0
#devtomobile#devto#dev#agent#client
Reading 0:00
15s threshold

Most agent UIs stream markdown or generate HTML strings. A2UI streams layout data that native framework adapters translate into platform components. The agent emits structured events describing buttons, cards, and forms. The client renders them using React, Flutter, SwiftUI, or Jetpack Compose without a WebView or eval().

This separation creates strict capability boundaries. The agent cannot inject arbitrary code. It composes from a fixed catalog of components defined by the application. The protocol is event-based and optimized for low-latency streaming, making it viable for real-time agent interactions across web and mobile platforms.

Why Layout Data Instead of Code

Generative UI typically means an LLM writes JSX or HTML, then the client renders it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.