Project Download
project_downloadDecompile a Scratch project into editable goboscript source from a project ID or local .sb3 file, then write it to a directory. Optionally verify the output compiles.
Instructions
Decompile a Scratch project into editable goboscript source, and make it active.
Give either project_id to pull straight from scratch.mit.edu, or
sb3_path for a local .sb3 file. Decompiling is lossy in layout terms: the
result is equivalent code, not a byte-identical copy of the original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory to write the goboscript project into. | |
| verify | No | Compile the decompiled source afterwards and report whether it builds. Decompilation is not always faithful, so this is worth knowing before you start editing. | |
| sb3_path | No | Path to a local .sb3 to decompile instead. | |
| overwrite | No | Allow writing into a directory that already has contents. | |
| project_id | No | Numeric scratch.mit.edu project id to download and decompile. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| project | Yes | ||
| compiles | Yes | ||
| diagnostics | Yes |