Publish a site
publish_sitePublish files to the web → live URL at .shiply.now. UPDATING: never create a new site for changes — re-call with claimToken (anonymous sites) or slug (sites you own with a Bearer key) and the SAME URL gets the new version. Unchanged files are hash-skipped server-side, so re-publishing (including retrying a failed publish) is cheap — always update the same site rather than creating a new one. Works WITHOUT auth (anonymous: 24h lifetime, returns claimToken/claimUrl — SAVE THEM). With a Bearer shp_ key sites are permanent. ≤50 files / 2 MB inline; bigger: REST flow per https://shiply.now/llms.txt. index.html serves at /. spaMode for client-side routing.
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": "publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | UPDATE an existing site you own (requires Bearer key) | |
| files | Yes | site files; index.html required for a homepage | |
| title | No | display title for the site | |
| client | No | optional: file this under a client (the publish/site is grouped in their customer view) | |
| spaMode | No | serve index.html for unknown paths (client-side routing) | |
| agentName | No | label shown during the automatic account re-auth flow | |
| claimToken | No | UPDATE an existing anonymous site (from the original publish result) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |