publish_document
Publish a new document or update an existing one.
Parameters
Returns
The tool returns JSON text from the API:
Examples
Create a new document
Update an existing document
The html parameter must be a complete HTML document — include <!DOCTYPE html>, <head>, and <body> as appropriate for your content.
Important notes
- Omit
document_id to create a new document. Include it to update an existing one.
- Save the
document_id returned on creation — you need it for future updates via MCP or when you instruct the model explicitly.
share_url is the link to send — it stays the same when you publish again with the same document_id.
- Version notes are optional but recommended — they appear in your version history in the dashboard.