Skip to main content
The Content access setting must be enabled to use the tools on this page. putApp, patchApp, and publishDraft also require Agentic capabilities to be enabled.
Tools used to read, write, publish, and render apps. Changes made with putApp or patchApp land on the document’s shared main draft and are invisible to other viewers until publishDraft runs. The recommended flow is to read the draft with getAppDraft, falling back to getApp only when no draft exists yet, then write, then publish. App settings cannot be changed using these tools. Use the Omni UI to modify app settings. If the X-MCP-User-ID header names an embed user, that user must have an active embed session. If the session has ended, these tools fail with a 403 error. Tools with the icon can run as another user with the X-MCP-User-ID header.

Read tools

Reads a published app document’s complete HTML source and sandbox settings, given a document identifier. Draft edits are not included in the response; use getAppDraft instead. Large apps may not be retrievable, since the returned HTML has a size cap.
Reads the main draft’s app HTML and settings.
Some MCP clients may not render apps correctly. Omni has confirmed that Claude Desktop, ChatGPT, and VS Code with Copilot correctly render apps. Cursor can render apps, but you may need to open a widget to view the app instead of the app opening by default.
Renders a saved, interactive app inline with live data.An app rendered through MCP runs under the same sandboxing and governed queries as everywhere else in Omni. See Apps security for more information.

Write tools

Replaces the app’s HTML on the document’s shared main draft. The draft is created automatically on the first write and reused on subsequent writes.
Applies htmlEdits to the app on the document’s shared main draft, instead of replacing the whole HTML.Like putApp, the draft is created automatically on the first write and reused on subsequent writes.
Publishing a draft publishes all the changes it contains, including any other editors’ unpublished changes to the same document.
Publishes the main draft so its changes become visible to viewers. Before publishing, this tool reads the draft to confirm it contains an app and refuses if it doesn’t.