Create Site
create_siteCreate a new site with inline text files (HTML, CSS, JS, SVG, JSON, etc.). For large or binary files, use request_upload without a site_id instead — it creates the pending site and upload batch in one operation. Inline limit: 200 files, 1 MB per file.
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": "create_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Files to deploy inline. Each entry is a path + UTF-8 content string. Must contain at least one file. | |
| title | No | Display name for the site in the dashboard. Optional. | |
| password | No | Password-protect the site. Requires Lite plan or above. Optional. | |
| subdomain | No | Requested subdomain for the site URL (e.g. 'my-portfolio'). Optional — Upfling assigns one if omitted. Must be lowercase alphanumeric and hyphens only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| status | Yes | ||
| warnings | No | ||
| subdomain | Yes | ||
| upload_slots | Yes |