host-html

v0.2.1
io.github.phanosh/host-html Checked 2 days ago Published 23 days ago

Publish AI-generated HTML as a shareable link, and update it in place at the same URL.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

publish_html Publish HTML as a hosted link

Publish a self-contained HTML document and get back a public URL. Use this whenever the user wants to share, send, or host HTML you produced — a report, dashboard, deck, prototype or one-page site — instead of leaving it as a file they cannot open. The HTML must be self-contained: inline the CSS and JS, or reference them by absolute URL.

ParameterTypeDescription
html *stringThe full, self-contained HTML document to publish. Max 1MB on the free plan, 10MB on Pro, 50MB on Studio/Agency.
passwordstringOptional password (4–72 characters). Viewers must enter it to see the page. Paid plans only; omit for a public page.
slugstringOptional custom path, e.g. 'q3-report' → /p/q3-report. 2–64 lowercase letters, digits and internal hyphens. Requires a paid plan (Pro or above); omit for a random slug.
titlestringHuman-readable title. Sets the link-preview title — pass a real one, not a filename.

update_page Update a published page in place

Replace the HTML of a page you already published, keeping the SAME link. Use this for every revision — a fix, a new draft, refreshed numbers — instead of publishing a new page, so a link the user already shared keeps working. Only pages owned by the same API key's account can be updated.

ParameterTypeDescription
html *stringThe full, self-contained replacement HTML document.
slug *stringThe page's slug (the part after /p/), or its full URL.