Skip to Content
dropshelf
MCPToolsDrops

create_upload

Get a one-time ticket to upload a site you have built on disk with curl, instead of writing its files into write_drop_files.

Call this only when the site is finished and you are about to upload, never as a first step or before building: the ticket works for one upload and expires ten minutes after it is issued. Run the command in the answer from the site's folder; it leaves dotfiles such as .git and .env out. The upload is a draft, for a new drop too (write_drop_files puts a new drop live at once); then call publish_version with the slug and the version the upload answered to publish it. note says what the version changes; base, for a drop that has been live, is the version your files are built on. If you cannot run a shell, use write_drop_files instead.

Changes data

Input

NameTypeRequiredDescription
basestringnofor an existing drop that has been live: the version your files are built on, by its id or its number, the one you last wrote or read
notestringyesone line, at most 200 characters: what this version changes and which comment or request it answers
retentionstringnofor a new drop: whole days as Nd, or forever; the instance default when omitted
slugstringyesthe drop to create, or an existing site you may edit (as its owner, an editor or an admin) to upload a new version of
typestringnofor a new drop: its type, such as site; required to create one
visibilitystringnofor a new drop: public, restricted or private; public when omitted

Output

FieldTypeAlways presentDescription
commandstringyesThe shell command that uploads. Replace SITE_DIR with the folder holding the built site, index.html at its top.
expiresAtstringyesTen minutes after the ticket was issued.
headerstringyesAlways X-Dropshelf-Upload.
newDropbooleanyesWhether the upload will create the drop.
nextstringyesWhat to do with the upload's answer.
notAppliedarray of stringnoretention or visibility given for an existing drop, which an upload never changes.
slugstringyesThe drop the ticket uploads to.
ticketstringyesThe secret, sent in the header named by header. Works once, until expiresAt.
uploadUrlstringyesWhere to POST the zip.
The output as JSON Schema
{
  "properties": {
    "command": {
      "description": "The shell command that uploads. Replace SITE_DIR with the folder holding the built site, index.html at its top.",
      "type": "string"
    },
    "expiresAt": {
      "description": "Ten minutes after the ticket was issued.",
      "type": "string"
    },
    "header": {
      "description": "Always X-Dropshelf-Upload.",
      "type": "string"
    },
    "newDrop": {
      "description": "Whether the upload will create the drop.",
      "type": "boolean"
    },
    "next": {
      "description": "What to do with the upload's answer.",
      "type": "string"
    },
    "notApplied": {
      "description": "retention or visibility given for an existing drop, which an upload never changes.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "slug": {
      "description": "The drop the ticket uploads to.",
      "type": "string"
    },
    "ticket": {
      "description": "The secret, sent in the header named by header. Works once, until expiresAt.",
      "type": "string"
    },
    "uploadUrl": {
      "description": "Where to POST the zip.",
      "type": "string"
    }
  },
  "required": [
    "ticket",
    "header",
    "uploadUrl",
    "slug",
    "newDrop",
    "expiresAt",
    "command",
    "next"
  ],
  "type": "object"
}

Generated from dropshelf core at 6a548b2, 26 Nov 2026.

On this page