publish
Publish HTML or Markdown content as a shareable URL. Pass content byte-for-byte from the source — do not retype, reformat, minify, summarize, or 'clean up' the input; even one stray character can break inline scripts on the published page. If the content is too large to copy verbatim through the model, use the REST endpoint POST /v1/artifacts (or /v1/artifacts/upload for ZIPs) instead. For Markdown, optionally include images as base64-encoded data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Artifact title (default: Untitled) | |
| format | Yes | Content format | |
| images | No | Images referenced in the markdown content. Only used when format is 'markdown'. | |
| content | Yes | The HTML or Markdown content to publish. Copy this verbatim from the source file or buffer — do not modify, reformat, or regenerate it. Whitespace, emojis, comments, and exact character sequences inside <script> and <style> blocks all matter. If you cannot fit the full content unmodified in one tool call, fall back to POST /v1/artifacts via curl. | |
| visibility | No | Visibility (default: unlisted) |