Agent-authored prototype specification¶
Current, unversioned contract for the agent-authored prototype (#9296, child of #9295). Android Compose
rendering, asset transport, the wire messages, the prototype MCP tool and the
iOS simulator agent implement it; the iOS
feature support table lists what is Android only (display,
window.layer: "app", window.persistence: "device", inspect, idle TTL). A spec accepts no code except the opt-in Android-only AGSL asset referenced by style.shader,
expressions, URLs, image bytes or migration instructions.
Conventions: the renderer is Compose; sizes and positions use dp; prototype opacity is a
percentage; app-element anchoring is supported. observe includes prototype nodes by default,
and existing tap and text tools target prototype nodes. Screenshots come from observe, with no
separate screenshot tool. Focus belongs to the window host: accessibility set-text does not require
focus, human keyboard input does.
The specification is split across these pages:
- Envelope and data model
- Theme
- Windows, Wear OS, Automotive and common node properties
- Nodes and text field options
- Style and icon effects
- Icons and images
- Motion
- Screen map and route transitions
- Actions, emit context and data actions
- Storage
- Request action and share contract
- Platform actions and events
- Platform: device status, connectivity, window controls and pickers
- Platform: links, media pickers, sign-in, location and BLE
- Platform: commerce, secure storage, sensors, permissions and notifications
- Platform: media players, camera, casting and haptics
- Conditions, repeat templates and components
- Patch, re-showing and device destination
- Realtime channels
- Data, storage and network; anchors; safe area
- Lifecycle and safety
- Lint, rejection paths, worked examples and fixtures
- Flow, carousel, refresh, chat, swipe, gestures, search and loading
- Effects, maps, web content and charts
- Rich text, menus, tooltips, drawers and checks
- Saved prototype activity and home screen
- Lazy lists, strings and semantics
- Dead taps, value formatters, platform namespaces, glass and disposable apps