Project Save To Cloud
project_save_to_cloudBuild a Scratch project and upload it to scratch.mit.edu, reusing the project ID for subsequent saves and including all assets. Control project visibility as public or private.
Instructions
Build the project and upload it to scratch.mit.edu as the active session.
Creates a new Scratch project the first time, then reuses that id for later saves. Uploads costume and sound files as well as the code, since Scratch stores assets separately and the project would render broken without them.
Refuses to upload a project using TurboWarp-only extensions, and names them, because scratch.mit.edu will not accept it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project to publish. Defaults to the active project. | |
| build | No | Compile before uploading. Pass false only if you just built it. | |
| title | No | Project title. Used when creating, and renames on later saves. Max 100 characters. | |
| thumbnail | No | "auto" (default) renders the Stage backdrop as the thumbnail, since Scratch only generates one in its editor and an uploaded project otherwise shows a grey placeholder. Pass an image path to use your own, or "none" to leave it alone. | auto |
| visibility | No | "public" to share it, "private" to unshare it, "unchanged" to leave its current state alone. | unchanged |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| title | Yes | ||
| created | Yes | ||
| warnings | Yes | ||
| project_id | Yes | ||
| visibility | Yes | ||
| assets_skipped | Yes | ||
| assets_uploaded | Yes |