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.

SurfaceWho uses itStatus
AssistantsA person, in chatlive
Generative UIA person, in a page or a widgetlive
MCP AppsA person inside Claude, ChatGPT or another MCP clientlive
WebMCPAn agent driving the visitor’s browserpreview
Voice agentsA person, speakingpreview

Assistants

live

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_servers points at servers that already exist. It connects; it does not create.
  • Test without an app: assistant_chat returns 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

live

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.

Wire format: json-render spec, streamed as JSONL patches
{"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/genui with { 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.
In a deployed app
OzGenUI.stream(el, { prompt: 'Compare the three plans', data })
OzGenUI.render(el, spec, { onAction })
<oz-genui prompt="Summarize this week" data='{"rows":[...]}'></oz-genui>
On this site
The factory agent’s plans and every Ask Oz answer are generated UI. The agent adds four components to the catalog: SystemMap, AccessMap, ToolSurface, ApprovalGate.

MCP Apps

live

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"); the widget template 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

preview

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 onto window.ozWebMCPTools before 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".
A page tool
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:

ToolDoesKind
oz_platformThe building blocks, and which are live today.read
oz_pricingPlans, limits and the pilot scope.read
oz_site_mapEvery public page.read
oz_open_pageOpen a page for the visitor.act
oz_askAnswer a question on the page.model
oz_draft_planHave the factory agent draft a plan on the home page.model
opzero_prepare_product_briefFill the design-partner brief for review.act
opzero_architect_productRun the Product Architect on a reviewed brief.model
opzero_product_factoryWhat Oz Factory offers.read
opzero_connect_infoHow to connect Oz to an AI client.read
opzero_site_linksDocs, 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

preview

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.
Next
Concepts

Projects, deployments, the app runtime, servers, gateways, connections.