Skip to content
Docs
Changelog

An agent on the live page asks the person first

The signed-in app runs one ui-sdk agent bridge that asks in our own dialog before any delete, pay or send, with WebMCP behind the ui.webmcp flag.

Markdown

  • One agent bridge in the signed-in app. platform/agent/live-agent.tsx creates ui-sdk's bridge once, in the browser, when the shell mounts. A step on a control marked data-agent-confirm waits for our own AlertDialog: it says what the action does in the person's language, Cancel ("Don't allow") is first and focused, and Cancel, Escape, the bridge's timeout or leaving the app refuse the step, so the action never runs. The dialog is hidden from the agent, so it cannot press Allow itself. See Agent on the live page. (7f1fe5bc, e9414a8a)
  • Delete, pay and send actions are marked. Removing a member or user, deleting a todo, file, conversation, passkey, flag override, webhook or the account, emptying the trash, revoking sessions and connections, banning, impersonating, rotating the webhook secret, disabling two-factor, replacing backup codes, approving an agent tool call, granting OAuth consent, checkout and the billing portal, every invitation, verification and reset email, and the webhook test event now carry data-agent-confirm on the button that confirms, with a sentence from the en, de and fr catalogs. Password and one-time-code inputs carry data-agent-secret, and on-screen secrets (2FA setup, backup codes, a new webhook secret) sit in data-agent-hidden. scripts/web-ui-sdk.test.mjs fails when a confirm button or password input loses its mark. (a234972e)
  • WebMCP behind ui.webmcp. A new flag, off by default, gives the browser's own agent the page's snapshot, act and query tools where the browser has document.modelContext. Marked steps still ask the person, once. Turning the flag off or leaving the app removes the tools. See Feature flags. (bdba1d02)
  • Weight. The bridge loads with the signed-in shell: the _auth route chunk grows from 7.2 KB to 19.9 KB gzip. Public pages load none of it.
  • Not yet. The in-app assistant does not drive the page through these tools; that stays an owner decision. (6ae86f30)
Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.