Create a static site on DROP
drop_publish_sitePublish a local directory or inline HTML, CSS, and JS files as a new public static site and return its public URL; reuse an existing slug to deploy updates.
Instructions
Create a new public DROP static-site project from a local directory or inline files, then return its public URL. For backward compatibility, passing an existing slug updates that project and returns action="deployed"; however, prefer drop_update_site when the user explicitly asks to update or redeploy an existing site. When creating a separate project, choose a new unused slug. Provide exactly one source: path (a local directory restricted by DROP_ALLOWED_ROOTS) or files (inline path/content pairs). DROP accepts only .html, .css, and .js files: at most 20 files, 512 KiB per file, and 1 MiB total. Existing projects are deployed with optimistic concurrency (If-Match) and one conflict retry.
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": {
"slug": "<slug>"
},
"name": "drop_publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Project name used only when creating a new project. Defaults to the slug. When an existing slug is reused for an update, the existing project name is kept. | |
| path | No | Local directory containing the deployable static output. Must be under DROP_ALLOWED_ROOTS. | |
| slug | Yes | DROP 项目 slug,1–40 位小写字母、数字或连字符;大写会自动转小写。传入已有 slug 会更新该项目的全部文件,不会创建重复项目;更新站点时应继续使用原 slug。 | |
| files | No | Inline project files, used instead of path. | |
| message | No | Optional deployment message. | |
| ignoreUnsupported | No | When publishing a directory, explicitly skip unsupported regular files instead of failing. Defaults to false. |