Get list of all blocks in a category in the palette

Does anyone have a method of programmatically getting a list of all blocks in a particular category?

Just the ones in the palette - not all the blocks of a category in the project

Searched after posting :slight_smile:

Notes:

  1. The "my" block only searches for the blocks available in the palette of the current sprite.
  2. Blocks with visually divergent colors from the category it's located in go in the same category as the color, not the category it's located in (for example, the "warp" block will be in Other, not Control)
  3. Replace the number 1 with the matching number of the category you want to grab from:
Number Category
1 Motion
2 Looks
3 Sound
4 Pen
5 Control
6 Sensing
7 Operators
8 Variables
9 Lists
10 Other
For other categories, run "my" with the dropdown set to "categories".

you can also use the extension reporter to get a list of all the available blocks and filter them afterwards:
all_blocks