Publish files you wrote
publish_filesPublish markdown, HTML, CSS, or JSON files as a live site and get its URL. Provide files and optional subdomain; the tool serves them at index.html or as a document viewer.
Instructions
Publishes one or more files written here — markdown, HTML, CSS, JSON — as a site, and returns its URL. A single page goes at index.html; a single .md, .markdown or .pdf file is a site on its own, served through the documents viewer. Text only: a PDF or an image has to be published from disk with publish_dir.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Subdomain or site id to publish over. Omit to create a new site. | |
| files | Yes | The files to publish. |