Surfaces
A surface is how a customer, or a customer's agent, meets a product. Oz has five. This site runs four of them on every page.
| Surface | Who uses it | Status |
|---|---|---|
| Assistants | A person, in chat | live |
| Generative UI | A person, in a page or a widget | live |
| MCP Apps | A person inside Claude, ChatGPT or another MCP client | live |
| WebMCP | An agent driving the visitor’s browser | preview |
| Voice agents | A person, speaking | preview |
Assistants
A model, a pinned system prompt, and a list of MCP servers whose tools it may call. The agent loop runs server-side.
- Served from a deployed app’s subdomain at
/__oz/assistant/<slug>/chat; from a page,oz.assistant(slug). mcp_serverspoints at servers that already exist. It connects; it does not create.- Test without an app:
assistant_chatreturns the reply and a trace of each tool round. - Unattended runs (schedules,
ctx.assistants.ask, webhooks) share one daily cap per assistant.
Details: Concepts, assistants.
Generative UI
A model writes a view as data; a renderer paints it. The model can only use components in a catalog, and every element is validated before it renders. Nothing a model returns is parsed as HTML.
{"op":"add","path":"/root","value":"card"}
{"op":"add","path":"/elements/card","value":{"type":"Card","props":{"title":"Q3"},"children":["m1"]}}
{"op":"add","path":"/elements/m1","value":{"type":"Metric","props":{"label":"Revenue","value":"$7.7M"}}}- Renderer:
https://opzero.sh/genui/v1/oz-genui.js, served to every Oz web app at/__oz/genui.js. - Route:
POST /__oz/genuiwith{ prompt, data?, instructions?, components? }. It runs under the app’s AI binding: its model allowlist, pinned system prompt, rate limit and output cap (4096 tokens when none is set). - Default catalog: Stack, Grid, Card, Heading, Text, Metric, Badge, Table, List, KeyValue, Progress, BarChart, LineChart, Callout, Button, Divider.
- Your own components:
OzGenUI.register(name, { description, signature, render }), at most 12 per request. - A Button names an action; your page decides what the action does.
OzGenUI.stream(el, { prompt: 'Compare the three plans', data })
OzGenUI.render(el, spec, { onAction })
<oz-genui prompt="Summarize this week" data='{"rows":[...]}'></oz-genui>MCP Apps
A hosted MCP server is the product inside Claude, ChatGPT and other MCP clients: tools the model calls, and interactive views returned with a tool result.
- Deploy with
workload_deploy(kind: "mcp_server"); thewidgettemplate is a server with an MCP Apps view. - A generated UI spec can be the content of a view, so a server-side model composes what the client shows.
- Auth modes:
oauth,token,public.
Details: Concepts, hosted MCP servers.
WebMCP
Page tools a browser agent calls instead of scraping. Needs a browser that exposes document.modelContext; everywhere else the same code is a no-op.
- Every standalone web app Oz deploys loads
/__oz/webmcp.js. It registers five generic tools (page_info,read_page,find_in_page,list_links,navigate). - Your own tools:
window.ozWebMCP.registerTool(tool), or push ontowindow.ozWebMCPToolsbefore the script loads. - Off for a project: runtime binding
webmcp: false. Off for a page:<meta name="opzero-webmcp" content="off">. Keep your tools, drop the generic ones:content="no-defaults".
window.ozWebMCP.registerTool({
name: 'find_order',
description: 'Look up one of the signed-in customer\'s orders by number.',
inputSchema: { type: 'object', properties: { number: { type: 'string' } }, required: ['number'] },
annotations: { readOnlyHint: true },
execute: async ({ number }) => JSON.stringify(await findOrder(number)),
})The tools this site registers on every page:
| Tool | Does | Kind |
|---|---|---|
| oz_platform | The building blocks, and which are live today. | read |
| oz_pricing | Plans, limits and the pilot scope. | read |
| oz_site_map | Every public page. | read |
| oz_open_page | Open a page for the visitor. | act |
| oz_ask | Answer a question on the page. | model |
| oz_draft_plan | Have the factory agent draft a plan on the home page. | model |
| opzero_prepare_product_brief | Fill the design-partner brief for review. | act |
| opzero_architect_product | Run the Product Architect on a reviewed brief. | model |
| opzero_product_factory | What Oz Factory offers. | read |
| opzero_connect_info | How to connect Oz to an AI client. | read |
| opzero_site_links | Docs, status, support and policies. | read |
read tools return data. act tools change only what is on screen. model tools make one bounded model call and wait for the visitor to agree to AI processing first.Voice agents
A spoken agent that acts through the same tools as the page. In preview: scoped per product during a pilot.
- On this site: an ElevenLabs agent over WebRTC, started from the Ask Oz panel when the deployment has one configured.
- The agent is private. The browser gets a short-lived session token from the server; the provider key never reaches it.
- Client tools:
open_page,draft_plan,show_answer. Each does what a visitor could do by clicking, and nothing else. - Anything that must be trusted (identity, payment, permissions) belongs in a server-side tool, not a client tool.