Update an existing static site on DROP
drop_update_siteUpdate an existing DROP static-site project by exact slug, atomically replace its file snapshot, and return the public URL.
Instructions
Update an existing DROP static-site project identified by slug, then return its public URL. Always pass the exact existing slug. The complete file snapshot is atomically replaced and the tool returns action="deployed"; it never creates a new project. If the slug is unknown, first use drop_list_projects or drop_get_project to discover it. If no project exists, use drop_publish_site to create one. The existing project name, visibility, and enabled state are not changed. 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. Updates use 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_update_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Local directory containing the deployable static output. Must be under DROP_ALLOWED_ROOTS. | |
| slug | Yes | 要更新的已有 DROP 项目 slug,1–40 位小写字母、数字或连字符;大写会自动转小写。必须传入已存在的 slug;如果不知道 slug,先用 drop_list_projects 或 drop_get_project 查询。 | |
| 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. |