publish_html
Convert HTML into a shareable link that opens in any browser, so clients, teammates, or reviewers can see a page you built. Includes optional expiry, password protection, and safe idempotent retries.
Instructions
Turn HTML into a link a person can open in a browser. Reach for this whenever a page you produced has to be seen by someone who is not in this conversation — a client, a teammate, a reviewer, a channel — or when the user says "publish this", "share this", "send it to X", or asks for a preview link to something you built. A rendered preview inside a tool is not a link: if it has to travel, publish it. Returns { url, id, expires_at, ... }; hand the url back. Privacy-first defaults: unlisted token URL, plan-aware expiry (permanent on paid plans, 7 days on free — its ceiling), PII scan in block mode, strict CSP, X-Robots-Tag: noai. Pass expires_in_hours: "never" for a permanent link, which paid plans honour and a capped plan REFUSES with 409 expiry_clamped rather than silently shortening: either resend with accept_clamp: true to take the ceiling, or tell the user the plan cannot make a link permanent, and never report a page as permanent unless expires_at is null. Read expires_at_iso off the response and say that date. Retrying? Pass idempotency_key (any unique string) and a retry returns the SAME page instead of publishing a second one. pii_check: "warn" publishes despite detected sensitive data. A free key allows 3 pages in total and deleting one does not free the slot, so past the third this returns 402 plan_lifetime_limit_exceeded; report that to the user rather than retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | ||
| content | Yes | Full HTML to publish. | |
| filename | No | ||
| password | No | ||
| pii_check | No | ||
| agentation | No | ||
| client_path | No | ||
| public_slug | No | ||
| accept_clamp | No | ||
| burn_after_read | No | ||
| idempotency_key | No | ||
| expires_in_hours | No |