ast_Call or procedures_callnoreturn in JSON notation

34 views
Skip to first unread message

Daniel Roßmann

unread,
Sep 16, 2025, 11:47:17 AMSep 16
to Blockly
Hi,

I try to get a Blockly block like this:
Screenshot 2025-09-16 164338.png

I've already managed this with a XML-Toolbox, but now I want to switch to a JSON notation for my toolbox.
But I can not find any useful documentation about how I get this.

Can anyone help me?

PS: this is the XML-notation:
<block type="ast_Call" editable="false">
  <mutation name="FuncName"
arguments="2"
returns="false"
parameters="true"
method="false"
message="FuncName"
premessage=""
module=""
colour="0">
<arg name="STR:0" />
<arg name="X:1"/>
  </mutation>
  <value name="ARG0" check="String">
<block type="ast_Str" check="String">
  <field name="TEXT" check="String">Text</field>
</block>
  </value>
  <value name="ARG1">
<block type="ast_Num" >
  <field name="NUM">1</field>
</block>
  </value>
</block>

Ronald Bourret (xWF)

unread,
Sep 17, 2025, 6:10:52 PMSep 17
to blo...@googlegroups.com
An easy way to configure your toolbox is to load your block into a workspace, configure it how you want, and serialize it by calling `save` in the in the console. You can then paste the relevant parts of the output into your toolbox. For details, see Configure your blocks. Note that your blocks must implement saveExtraState and loadExtraState to be able to save/load blocks as JSON.

Ronald Bourret
Technical Writer (Provided by Synergis)


--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/25c6cdee-15a8-414d-b97b-efee6c9f4c3an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages