Publish a site
artifact_site_publishPublish AI-generated pages, reports, charts, or prototypes to Artifact Site and receive a shareable link. Provide inline HTML, a file tree, or a completed upload.
Instructions
Save a new AI-generated page, report, chart, prototype or document to the remote Artifact Site library and get its address. Use for 'publish this report' or 'give this page a link'. Supply inline HTML, a UTF-8/base64 file tree, or a completed upload_id. For requests over 2 MiB, use upload_start and upload_write first. Creates a PUBLIC share by default; use share:false for unshared work. To change an existing artifact at the same URL, use update or edit instead. Returns the created artifact and share result; if sharing fails, retry share rather than publishing again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Complete HTML document; exclusive with files/upload_id. | |
| files | No | Complete relative file tree with UTF-8 or base64 contents; exclusive with html/upload_id. | |
| share | No | Share policy. Defaults to public; false creates no share link. | public |
| title | No | Display title; does not change the URL. | |
| official | No | Designate the uploaded version as the only official version; replaces the old designation without deleting contents. | |
| tenant_id | No | Destination tenant for creation; defaults to the account tenant. | |
| upload_id | No | Completed upload ID from upload_start; supply instead of html/files after all files have final:true. | |
| share_token | No | Token from a user-provided share URL; carries only that share permission. | |
| operation_key | No | Persist a unique key before this write. Reuse exactly the same key and arguments after errors; recover results for seven days using operation_status. |