List block types
list_blocksList standard Scratch block opcodes, filterable by core category or extension, to discover valid blocks for your .sb3 project.
Instructions
The catalog of standard Scratch block opcodes you can use in a target's blocks map — each with its category, shape (hat / stack / c-block / cap / reporter / boolean) and the names of its inputs and fields. Use this to discover opcodes, then get_block_schema for how to fill one in. With no category, lists core blocks; pass a core category (motion, looks, sound, event, control, sensing, operator, data, procedures) or a built-in extension id (pen, music, videoSensing, text2speech, translate, makeymakey, microbit, ev3, boost, wedo2, gdxfor) to filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | A core category or a built-in extension id. |