Publish a version from the disk, or file by file
dropyour_uploadPublish a new version of an existing app WITHOUT writing it into the conversation. CHEAPEST WAY FIRST, if you can run a command (a terminal, a coding agent, a CI): action:'url' with sha256 = the SHA-256 of the archive or page you will send (shasum -a 256 app.zip) returns uploadUrl and a ready command (curl --fail-with-body --data-binary @app.zip ''). The bytes go from the disk: they never pass through your messages, so a large app costs a few tokens instead of rewriting every character. The address works ONCE, for 10 minutes, for this app only, and only for the exact bytes whose SHA-256 you announced (any other bytes are refused and the address is used up); asking for a new address on the same app discards the previous unused one, at most 10 live addresses per account. The upload goes through the same checks as dropyour_replace (size cap of the account, security scan, network exits, contracts of linked apps) and the HTTP response says what was published: version, versionSha256, archiveSha256. A zip is for a server app (dropyour_graduate); a single-page app sends its .html file. An address accepts up to the account's content cap, the same as dropyour_replace (the response gives maxBytes): a larger archive is refused, nothing published. WITHOUT a terminal: open an upload session, send the files one by one (plain text, or base64 for binaries, in several parts if needed), then commit; every byte you send is written in your messages. Requires a connected account (an anonymous session or a management token alone is refused). Steps: (1) action:'open' returns an uploadId, valid one hour (at most 3 open sessions per account; opening one on an app discards the previous one on that app); (2) action:'put' with files:[{path, text}] or [{path, base64}], up to 20 files and 1000000 decoded bytes per file per call; a single file may be as large as the account's content cap (the whole publication, 25 MB on Pro); add append:true to continue a file sent in parts; each call returns the SHA-256 and size the server computed for every file it received, and refuses a file whose optional sha256 does not match; archiving leftovers (__MACOSX/, .DS_Store, Thumbs.db) and a file starting with a zip signature are refused; (3) action:'status' lists what the session holds; (4) action:'commit' publishes ALL the files as ONE version, or nothing: the session must hold the COMPLETE app (every file, index.html included), because a version replaces the previous one whole. Pass expect:{path: sha256} at commit to require an exact manifest. The commit goes through the same checks as dropyour_replace (paths, size caps, security scan, contracts of linked apps). It returns files: the files as they are STORED, read back after the publication (path, bytes, sha256), sent: what the session held, and differences when the two differ (the entry HTML is stored as index.html; a text file loses its byte order mark). action:'abort' discards the session. A multi-file app must be a server app (dropyour_graduate); a single HTML page takes one 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": {
"dropId": "<dropId>",
"action": "<action>"
},
"name": "dropyour_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | action:'put' only | |
| action | Yes | ||
| dropId | Yes | ||
| expect | No | action:'commit' only: the exact manifest {path: sha256} the session must hold | |
| sha256 | No | action:'url' only (required there): the SHA-256 of the exact archive or page you will send to the address (shasum -a 256 app.zip) | |
| uploadId | No | Returned by action:'open'; required by put, status, commit and abort |