Enable an extension
enable_extensionRegister an extension on a Scratch project so its blocks appear in the palette. Pass the extension ID for built-ins, or include a loader URL for custom TurboWarp extensions.
Instructions
Register an extension on the project so its blocks load and show in the palette — required before using any <id>_… extension block. For a built-in extension pass just its id (pen, music, videoSensing, text2speech, translate, makeymakey, microbit, ev3, boost, wedo2, gdxfor). For a custom/third-party (TurboWarp) extension, also pass the loader url so the editor can fetch it. Adds the id to the project's extensions and, with a url, records it in extensionURLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The extension id, e.g. "pen" or a custom extension id. | |
| url | No | Loader URL for a custom/third-party extension. |