iTranslated by AI
What is A2UI? Understanding the Design Philosophy Where Agents Don't 'Render' UI and Its Differences from MCP Apps
In my previous article, I covered the implementation of MCP Apps, so I am writing this article to explore A2UI (Agent-to-User Interface), which is a similar technology.
Introduction
In this article, I will explain A2UI (Agent-to-User Interface), an open project published by Google, focusing on the "design philosophy I understood after reading the specifications and running it."
A2UI is often discussed in the same context as Agent × UI technologies like MCP Apps, but after actually trying it out, I realized that the separation of concerns and trust boundaries are quite different.
In this article, I will organize the following from an implementer's perspective:
- What A2UI is trying to solve
- Why it is designed so that the "Agent does not draw the UI"
- The philosophical differences from MCP Apps
For the implementation side, where I actually ran A2UI and verified its behavior, I have summarized it in a separate article.
👉Understanding A2UI without LLMs: Verifying with the official Client and a custom Agent
Target Audience
- People trying A2UI for the first time
- People who want to know the differences from similar technologies like MCP Apps
1. What is A2UI (Agent-to-User Interface)?
A2UI is an open project led and published by Google.
On the Google Developers Blog,
A2UI is described with the following positioning:
A protocol for Agents to declaratively describe User Interfaces and for clients to safely render them
Reference: A2UI Official Site, Google Developers Blog
The terms "declaratively" and "safely render" used here are important prerequisites for understanding A2UI.
1.1 The philosophy of "Specifying the UI" rather than "Generating the UI"
A2UI is not a mechanism for "Agents to create UI freely."
Agents declaratively specify the structure and behavior of the UI within constraints pre-defined on the client side.
While this is a limitation, it also reveals design intentions such as:
- Preventing arbitrary code execution
- Enabling the use of external Agents
- Keeping the initiative of the UI with the client
If we organize these as a correspondence between "constraints" and "design intentions that can be read from them," it looks like this:
| Specification / Constraint / Premise in A2UI | Design Intention |
|---|---|
| Use only pre-defined UI components | Enable safe rendering on the client side |
| Describe UI structure declaratively and explicitly | Eliminate arbitrary code and implicit behaviors |
| Limited definition of actions / interactions | Prevent arbitrary code execution and injection of side effects |
| Do not generate HTML / JavaScript directly | Establish trust boundaries assuming external Agents |
| UI implementation/rendering is a client responsibility | Keep UI initiative and final judgment with the client |
1.2 A2UI Processing Flow
Here, I will organize the separation of concerns and processing flow when running a minimal A2UI configuration.
In other words, in A2UI:
- The Agent does not decide "how to draw the UI"
- The Client does not judge "what to do"
the division of roles is clearly separated.
2. Differences from MCP Apps
Some may think of MCP Apps in terms of the relationship between Agent and UI, but the characteristics of A2UI mentioned in Chapter 1 have revealed differences from MCP Apps.
- MCP Apps is a mechanism where the Agent defines the behavior of the application itself, allowing for relatively free construction of experiences including the UI.
- On the other hand, A2UI is characterized by the Agent declaratively specifying the "meaning" or "structure" of the UI, with implementation and execution clearly delegated to the client side.
Therefore, although both are sometimes discussed in similar contexts, I perceive that the intended separation of concerns and trust boundaries are somewhat different.
*Reference: Regarding MCP Apps, I have touched upon it in the past as an implementation experience article.
👉 https://zenn.dev/naokky/articles/202601-mcpapp-sample
| Aspect | A2UI | MCP Apps |
|---|---|---|
| Entity that defines UI | Agent "specifies" the UI | Server / Agent "generates" the UI |
| UI implementation/drawing | Client-side responsibility | Substantially handled by the Server side |
| UI initiative | Remains with the Client | Leans toward the Server / Agent side |
| What the Agent should be aware of | UI representations the Client can understand (catalog / renderer) | Hardly needs to be aware |
| Degree of expressive freedom | Limited to the scope permitted by the Client | Can be built freely on the Server side |
| When returning unsupported expressions | Not displayed / Ignored / Results in error | Basically established at the Server's responsibility |
| Trust boundary | Client is strongly treated as a trust boundary | Leans toward the Server side |
| Assumption of external Agent | Strongly assumed | Not very strongly assumed |
| Design philosophy | Emphasis on safety, control, and separation of concerns | Emphasis on freedom of experience and integration |
A2UI is a technology designed on the premise that it will be used in combination with other Agent execution platforms, rather than a mechanism that is complete on its own.
If you want to incorporate Agents that cross external boundaries or trust boundaries into a UI, A2UI is suitable, whereas if you want to design UI and Agents closely within the same team and prioritize freedom of experience, MCP Apps might be more suitable.
Cases where A2UI is suitable
- You want to safely incorporate external Agents into your UI
- You want to control Agent output on the client side
- You want to clarify trust boundaries
Cases where it is not suitable
- You want to freely create UI expressions under Agent initiative
- You want to immediately try out advanced layouts or expressions
3. Summary
3.1 Features of A2UI
The features of A2UI are as follows:
- UI is not drawn on the Agent side
- Client side renders the UI
- Agent and Client are separated as processes
Handling of input values and execution processes are all the responsibility of the client side.
3.2 Potential of A2UI
Since A2UI has not yet reached the status of a standard specification, it is important to keep a close eye on future trends.
- Open project led by Google
- Philosophy and specifications are clear, and implementations exist
- However, it is not an industry-wide agreed-upon standard specification
Still, I personally felt that trying out A2UI has certain value.
- It concretizes the direction of Agent-driven UI
- The philosophy of separating UI and execution is rational
- High probability of being incorporated into other standards or platforms in the future
I felt that A2UI is not a "mechanism to leave the UI to the Agent," but a technology trying to define a "language for the Agent to safely talk to the UI."
Although it is not a mainstream technology right now, it is one that will be useful to understand later, so I hope this article helps deepen your understanding of A2UI.
Discussion