htmldrop_publish
Publish HTML or Markdown content to a public hosted page. Returns the shareable URL for distribution.
Instructions
Publish an HTML or Markdown document as a hosted page on htmldrop. Returns the public share URL. Use this whenever a user asks to publish, share, or 'put on the web' some HTML / Markdown content. Pass exactly one of html or markdown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Raw HTML document content. Either this or `markdown` must be set. | |
| slug | No | Optional URL slug (3-63 chars, lowercase letters, numbers, hyphens). If omitted, a random slug is assigned. | |
| title | No | Optional title shown in the dashboard list. | |
| markdown | No | Markdown content. Will be rendered to HTML on the server. Either this or `html` must be set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Opaque site id. Pass to htmldrop_delete to remove later. | |
| url | Yes | Public share URL of the published page. | |
| slug | Yes | Resolved slug for the published site. |