Publish a new site
deploy_sitePublishes files as a new public website and returns its URL. Each call creates a separate site at a new URL; update_site changes an existing one. Limits: 200 files and 4 MB in total. The result includes a site_id and a manage_token that the other site tools require. The site is public to anyone with the URL and, without an account, is removed after 14 days; the result's keep_url is a page where the person can sign in and keep it permanently.
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": {
"files": "<files>"
},
"name": "deploy_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Text files to publish, as a map from path to file content, e.g. {"index.html": "<!doctype html>…", "css/site.css": "…"}. Paths are relative, use forward slashes, and must not start with a slash. The site needs an index.html at its root (a single .html file is served as the home page; a set of .md files with no index.html is rendered as a site). A single self-contained HTML file with inline CSS and JavaScript is the most reliable thing to publish. | |
| binary_files | No | Optional non-text files (images, fonts) as a map from path to base64-encoded bytes. Intended for a few small assets; text belongs in `files`. |