Publish a site
htmlkin_publishPublishes a site on htmlkin.io and returns its public URL. Takes exactly one source: a ready HTML document (html_content) or the text files of a static site (files). For binary assets use a ZIP via the REST API or the browser. You can set a preferred subdomain, PIN protection and visibility.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "htmlkin_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | 4-digit PIN (0000–9999) that protects viewing the site. Optional. | |
| files | No | Up to 20 text files and 2 MB of UTF-8 in total; a root index.html is required. | |
| comments | No | Who can comment on selected text on the site: off — nobody; everyone — anyone signed in to htmlkin; team — the owner and the team, on the Business plan. Defaults to off. | |
| subdomain | No | Preferred subdomain ({subdomain}.htmlkin.io): 3–63 characters a-z, 0-9, "-" (not at the edges). Not a URL or a file name. If taken, the error is subdomain_taken. | |
| visibility | No | Who can open the site: public — anyone, search engines index it; link — anyone with the link, not indexed; team — the account's team members after signing in, on the Business plan; private — only the account owner after signing in. Defaults to public. | |
| html_content | No | Full HTML document of the site (inline HTML, up to 30 MB; larger — ZIP via the REST API). Exactly one of html_content and files. |