Site actions (WebMCP)
If your site offers assistants its own actions through WebMCP, the voice agent on a Pointline session can use them: “get a quote” or “ask for a call back” in one reliable step, done by your code, instead of working through the page.
What WebMCP is
WebMCP is a draft web standard (W3C Web Machine Learning Community Group) that lets a page register actions for assistants with document.modelContext.registerTool. It is in Chrome and Edge as a trial and is not in Firefox or Safari yet. Where a caller's browser does not have it, nothing changes: the agent works with the page as before.
Switch it on
Under Developers, in Tools your agents are offered, tick list_site_actions and run_site_action. They are off by default. Once on, the caller's permission box gains a sentence saying the assistant can use actions this site offers.
Register an action on your site
document.modelContext?.registerTool({
name: "get_quote",
title: "Get a quote",
description: "The monthly price of a plan for a type of home.",
inputSchema: {
type: "object",
properties: { plan: { type: "string", enum: ["essential", "plus"] } },
required: ["plan"],
},
annotations: { readOnlyHint: true }, // it only looks something up
async execute({ plan }) {
return JSON.stringify(await priceFor(plan));
},
});Your code runs in the caller's browser, with their session on your site. Return only what you are content for the assistant to say aloud.
What the caller agrees to
| The action | What it needs |
|---|---|
Only reads (readOnlyHint: true) | The caller has allowed sharing. |
| Changes something | The caller has also allowed the assistant to act on the page (the second box). |
Has consequences (consequentialHint: true, or a name that says pay, buy, order, submit, send, book, cancel or delete) | As above, and a box naming the action each time: “Let the assistant do this for you: Ask for a call back?” |
Mark actions honestly: an action without readOnlyHint is treated as one that changes something.
What the agent sees
list_site_actions: each action's name, title, description, input schema and the two hints. Up to 30 actions; a schema over 4,000 characters is left out.run_site_action: what your action returned, as text, up to 8,000 characters. It is passed to the model marked as untrusted page data, cleaned of card numbers, and never stored. An error your code throws is not passed on.
The session's timeline records which action ran and how many characters came back, never the input or the result.
Try it
The Larkfield Insurance demo site registers two actions, get_quote (read only) and request_callback (asks first). Open it in a browser with WebMCP switched on and ask the agent for the price of the Plus plan.