How it works
- Use a browser that provides the WebMCP API (Chrome, behind its origin trial).
- Open the editor as a normal tab — tools register only on the top-level page.
- Ask your browser's AI agent to open, read, convert or export a document.
- WebMCP tools perform editing and conversion locally, but a browser agent can receive document text or exported files and may send them to its own AI service. Check the agent’s data policy before sharing confidential content.
Most web apps are opaque to an AI agent. It sees a page of buttons and has to guess which one converts a file, then hope the click landed. WebMCP — a proposal from the W3C Web Machine Learning Community Group — lets a page skip that entirely by declaring what it can do as structured, callable tools with typed inputs. This editor declares seven of them.
open_document_url, open_document_buffer, create_document, save_document, get_document_text, set_readonly, get_document_state. WebMCP tools perform editing and conversion locally, but a browser agent can receive document text or exported files and may send them to its own AI service. Check the agent’s data policy before sharing confidential content.
The built-in AI assistant is unfinished and is not a released feature. An embedding host can receive exported files and upload them according to its own policy.
Two limits are deliberate. Tools register only when the editor is the top-level page — a cross-origin iframe would need the embedding page to grant allow="tools", which conflicts with how embedding is meant to work, so embedded editors are driven with the postMessage API instead. And full-text reading is available for word-processing documents; spreadsheets and presentations do not expose one on this engine, so the tool says so rather than returning an empty answer an agent might mistake for an empty file.
Frequently asked questions
What is WebMCP?
A proposal from the W3C Web Machine Learning Community Group that lets a web page register structured tools an in-browser AI agent can call directly, instead of the agent having to interpret and click the user interface.
Which tools does this editor register?
Seven: open_document_url, open_document_buffer, create_document, save_document, get_document_text, set_readonly, get_document_state. They cover opening from a URL or from bytes, creating a new document, exporting or converting, reading the text, toggling read-only, and reporting the current state.
Which browsers support it?
WebMCP is available in Chrome behind an origin trial. Firefox and Safari have not announced support. Where the API is absent nothing is registered and nothing changes.
Is my document uploaded when an agent works on it?
WebMCP tools perform editing and conversion locally, but a browser agent can receive document text or exported files and may send them to its own AI service. Check the agent’s data policy before sharing confidential content.
Can an agent read the contents of my document?
For word-processing documents, get_document_text returns the text so the agent can answer questions without exporting anything. Spreadsheets and presentations have no full-text read on this engine, and the tool reports that instead of returning an empty answer.
Does it work when the editor is embedded in another site?
No, by design. Tools register only on the top-level page. Embedded editors are driven through the postMessage Embed API instead.
Can an agent convert a file to PDF?
Yes. save_document takes a target format, so an agent can open a DOCX, XLSX or PPTX and export a PDF, all on the device.
Do I need an account or an API key?
WebMCP tools require no account or API key. Core opening, editing and conversion run locally in your browser without a required document upload. The built-in AI assistant is unfinished and is not a released feature. An embedding host can receive exported files and upload them according to its own policy.