AI / Field guide

Agent-ready interfaces & WebMCP

Expose safe, structured actions so a browser assistant can help users in your app.

An agent can use the same task

THE SAME CUSTOMER TASK, TWO ENTRY POINTSCustomer workspaceCreate a reportReporting period: last weekCreate reportVisible form always worksBROWSER AGENTStructured toolfor this pageAVAILABLEBoth paths use the same authorized product operation

A supported browser can discover a structured tool for a task on the current page.

01 / CONTEXT

Why it matters

WebMCP is an emerging browser-side way for a page to describe actions as tools an agent can discover and invoke. It can make a human-facing workflow easier for a browser assistant to use without replacing the page or its existing server-side authorization.

This is different from an AI assistant built into your product and from a backend MCP server. The page offers tools in the current browser session and context. Browser support and the specification are still evolving, so treat it as progressive enhancement and keep the ordinary UI usable.

02 / DESIGN

Decisions to make

  • Choose one customer task whose existing UI can be described as a small, meaningful tool.
  • Decide whether a form annotation or a JavaScript tool best represents that task.
  • Define the tool name, input schema, visible result, and errors in customer terms.
  • Choose which actions require the user to review or confirm before the final step.
  • Keep tenant, session, and permission checks in the server action the tool calls.
  • Decide how tools appear and disappear as the page, active account, or user access changes.
03 / IMPLEMENTATION

Build checklist

  • Feature-detect WebMCP and leave the normal interface fully functional without it.
  • Expose only tasks available in the current page and authenticated user context.
  • Reuse the same validated product operation that the visible UI uses.
  • Return a clear result the user can inspect in the page, not only a hidden tool response.
  • Test missing inputs, wrong-account requests, expired sessions, and denied actions.
  • Review draft-spec changes and test supported browsers before treating the integration as stable.
04 / WATCH FOR

Common mistakes

  • Treating WebMCP as a backend MCP endpoint or as a substitute for product APIs.
  • Exposing an unrestricted mutation because a tool is available only in the browser.
  • Removing the human UI or assuming every customer browser supports the draft API.
05 / GO DEEPER

Tools & references

3 starting points to compare or study. Check fit, maintenance, terms and current capabilities before choosing one.

BUILDING THIS NOW?

Explore the SaaSLayer approach.

See the services and developer guides behind our AWS backed SaaS building blocks.

Read SaaSLayer docs
NEXT FEATUREProduct API & machine-readable schema