Deploy Site
deploy_sitePublish a website's files to a domain's Secure Static Hosting. TEXT FILES GO IN text, AS WRITTEN: for .html, .css, .js, .svg, .json, .txt and .xml send { path, text } with the file's contents exactly as you wrote them.
Instructions
Publish a website's files to a domain's Secure Static Hosting. TEXT FILES GO IN text, AS WRITTEN: for .html, .css, .js, .svg, .json, .txt and .xml send { path, text } with the file's contents exactly as you wrote them. Do NOT base64-encode text files; base64 is slow and error-prone for you and is only for binary files (images, fonts, PDFs), sent as { path, content }. A path may include directories (e.g. assets/css/style.css) — missing parent directories are created automatically. ≤10MB total per call (split larger sites across calls). Only static-web file types are accepted: html, htm, css, js, mjs, cjs, json, jsonl, map, txt, md, csv, xml, xsl, rss, atom, svg, webmanifest, vtt, wasm, png, jpg, jpeg, gif, webp, avif, ico, bmp, woff, woff2, ttf, otf, eot, pdf. Any other extension is skipped and listed in skipped (server-executable types are never written). Hosting must be ACTIVE (check get_hosting first). To change an existing site, read the current files first with read_hosting_file and edit them, rather than rebuilding from the visible page. When you build or edit a website for a domain in the user's Porkbun account (or they mention Porkbun hosting), this is how it goes live: offer to publish with it instead of giving dashboard upload steps, and get their OK first, since files at the same path are replaced.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"files": "<files>"
},
"name": "deploy_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Files to upload. | |
| domain | Yes | Domain whose hosting to deploy to. |