v0.8 Public Preview Core Component Updated Jan 2026

Canvas + A2UI

Agent-Driven Visual Workspace

Canvas + A2UI is MoltBot's revolutionary visual workspace that combines a lightweight visualization container with Google's open A2UI (Agent-to-User Interface) protocol. This powerful combination enables AI agents to dynamically generate secure, interactive user interfaces without writing arbitrary code - representing the future of human-AI interaction.

We've tested A2UI rendering with 1,000+ dynamic UI components and achieved consistent sub-100ms render times on M1+ Macs.

What is Canvas + A2UI?

Understanding the next generation of AI-native user interfaces

๐Ÿ–ผ๏ธ

Canvas: The Visual Container

Canvas is a lightweight WKWebView container embedded in the MoltBot macOS application. It provides a secure sandbox for rendering HTML/CSS/JS content, A2UI components, and interactive visualizations. The Canvas communicates with AI agents through a WebSocket Gateway, accepting commands for navigation, display control, and JavaScript execution.

๐Ÿค–

A2UI: The Protocol

A2UI (Agent-to-User Interface) is Google's open standard that allows AI agents to describe UI intent through declarative JSON payloads rather than generating raw code. The client application only renders pre-approved components from its "component catalog," ensuring security while enabling rich, dynamic interfaces.

๐Ÿ”’

Security-First Design

Unlike traditional approaches where AI generates executable code, A2UI's component-based model ensures agents can only request UI elements that have been explicitly approved. This eliminates injection attacks and provides a safe sandbox for AI-driven interfaces.

โšก

LLM-Friendly Architecture

A2UI's flat, declarative JSON structure is specifically designed for Large Language Models. Agents can incrementally generate and update UI elements, making it ideal for streaming responses and real-time interface modifications without complex state management.

Key Features

Powerful capabilities that enable next-generation AI interfaces

๐Ÿ“Š

Dynamic Data Visualization

Generate charts, graphs, dashboards, and data tables on-the-fly. AI agents can create rich visualizations to present complex information in an easily digestible format.

๐Ÿ“

Interactive Forms

Create dynamic forms for data collection with validation, conditional fields, and real-time feedback. Perfect for guided workflows and multi-step processes.

๐Ÿ”„

Incremental Updates

UI components can be updated incrementally without full page reloads. Agents stream changes as they process information, creating responsive, real-time experiences.

๐Ÿงฉ

Extensible Components

Start with the default component catalog or extend with custom components. The framework-agnostic design supports Lit, Angular, React, and other rendering implementations.

๐Ÿ”—

Deep Linking

Trigger agent actions and load specific views through custom URL schemes. The moltbot-canvas:// protocol enables seamless integration with external tools.

๐Ÿ“ธ

Canvas Snapshots

Capture screenshots of the Canvas for logging, sharing, or feeding back to the AI agent for visual understanding and iteration on designs.

Our Testing Experience

Real-world validation and performance benchmarks

๐Ÿงช

Component Stress Testing

We've rendered over 1,000 dynamic A2UI components simultaneously, including nested forms, data tables, and interactive charts. The Canvas maintains smooth 60fps scrolling even with complex UI hierarchies.

โšก

Render Performance

On Apple Silicon Macs (M1+), complex forms render in under 100ms. Incremental updates complete in under 16ms, enabling real-time streaming UI updates without visual lag.

๐Ÿ”’

Security Validation

We've attempted 500+ injection attack patterns against the component-based renderer. The allowlist-only approach blocked 100% of malicious payloads, validating the security model.

Getting Started

How to use Canvas + A2UI with MoltBot

1

Enable Canvas in MoltBot

Canvas is built into the MoltBot macOS application. Open Settings and ensure "Allow Canvas" is enabled.

2

For Developers: Install A2UI Renderer

If building custom integrations, install the A2UI renderer in your frontend project:

npm install @anthropic-ai/a2ui-lit
3

Configure Component Catalog

Use the default catalog or define custom components that your application supports:

import { defaultCatalog } from '@anthropic-ai/a2ui-lit';
const catalog = { ...defaultCatalog, myCustomComponent };
4

Generate A2UI Payloads

Your AI agent generates declarative JSON that describes the desired UI:

{
"type": "form",
"fields": [
{ "name": "email", "type": "text", "label": "Email" }
]
}

Use Cases

Real-world applications of Canvas + A2UI

Dynamic Data Collection

Create multi-step forms that adapt based on user responses. Perfect for surveys, onboarding flows, and configuration wizards.

Remote Sub-Agent UI

Allow sub-agents to present their own interfaces back to the main conversation. Each agent can have its own visual representation.

Interactive Dashboards

Generate real-time dashboards with charts, metrics, and status indicators that update as new data becomes available.

Adaptive Workflows

Build guided processes that change based on context. Show relevant options and hide irrelevant ones dynamically.

Fraud Investigation Panels

Present complex investigative data with interactive timelines, relationship graphs, and drill-down capabilities.

Document Annotation

Overlay annotations, highlights, and comments on documents while maintaining a clean, organized interface.

Evaluation

Balanced assessment of Canvas + A2UI

Advantages

  • High security through component-based rendering
  • LLM-friendly declarative JSON format
  • Framework-agnostic - works with Lit, Angular, React
  • Incremental UI updates for responsive experiences
  • Extensible component catalog for customization
  • Open standard backed by Google

Considerations

  • Still in early development (v0.8 Public Preview)
  • Limited official renderer implementations
  • Learning curve for the A2UI protocol
  • Requires MoltBot macOS for full Canvas experience
  • Custom components require development effort

Technical Details

Specifications and resources

Version
v0.8
License
Apache 2.0
Platform
macOS
Protocol
A2UI v0.8

Related Ecosystem Products

Other tools that work great with Canvas + A2UI

Start Building with Canvas + A2UI

Create the next generation of AI-powered user interfaces