Meta WebMCP documentation hints at tool trust boundaries
Start here
Meta released WebMCP developer documentation: a Web App can register page actions as tools via document.modelContext.registerTool(), for Meta AI on Ray-Ban Display glasses to call when the user makes a voice request. Tools are available only while the Web App is in the foreground, registered on page load and unregistered when the user leaves; Meta AI cannot call them in the background, and a single call times out after 10 seconds. The documentation also states that untrustedContentHint, used to mark untrusted text, is not an enforced security boundary and should not be relied upon; developers should treat parameters passed by Meta AI as untrusted and validate them in execute, should not perform destructive or irreversible operations merely because a tool was called, and should not accept the model's description of execution results but instead verify and score them in the page itself.
Generated by AI from reports · Updated 2026-10-19
Progress timeline
- MIXED Reality NewsMeta explains tool trust boundaries in its Ray-Ban Display WebMCP documentation
In its WebMCP agent tool documentation for Ray-Ban Display, Meta tells developers that untrustedContentHint, used to mark untrusted text, is not a mandatory security boundary and should not be relied upon. The documentation requires developers to treat parameters passed by Meta AI as untrusted and validate them in execute, not to perform destructive or irreversible operations merely because a tool is called, and not to accept the model's description of execution results; instead, the page should verify and score them itself. The documentation also lists seven reserved tool names: openUrl, goBack, goForward, reload, getCurrentUrl, getPageTitle, and getPageText. These names are rejected by the browser, and the rejection occurs after registerTool() has already resolved, so the page cannot detect it.
- Date not givenMeta WearablesMeta publishes WebMCP documentation, allowing Web Apps to expose tools to Meta AI on Ray-Ban Display glasses
Meta published WebMCP development documentation, stating that Web Apps can register page actions as tools via document.modelContext.registerTool(), which Meta AI on Meta Ray-Ban Display glasses can call upon user voice requests. Tools are only available when the Web App is in the foreground; they are registered on page load and unregistered when the user leaves. Meta AI cannot call them in the background, and each call has a 10-second timeout. The documentation requires that each tool action also retain a manual operation path, and that tool results must return page-verifiable facts rather than the model's self-descriptions. It also recommends combining user statements and actions into a single call to avoid skipping validation. On the security side, the documentation requires validating execute inputs as untrusted data and setting untrustedContentHint for content not generated by the app, because tool-returned text enters the assistant context, and unmarked external content could become a prompt injection entry point.