Save edits to the Scratch project
push_to_scratchSave local Scratch project changes back to scratch.mit.edu, overwriting the online version. Requires ownership and confirmation.
Instructions
Save the open project back to scratch.mit.edu, overwriting the online project's contents (uploads its costumes/sounds, then writes project.json). Requires login and ownership of the project. This edits the live project, so it always asks the user to confirm first (set confirm: true only after the user has agreed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set true only after the user confirmed (used if the client cannot prompt). | |
| projectId | No | Target project id. Defaults to the opened Scratch project. |