add_blocks
Inject validated Blockly XML blocks into the Blocks workspace. The IDE must be in Blocks view.
Instructions
Injects Blockly XML blocks into the Blocks workspace. Validates the XML before injection to prevent silent failures. Requires the IDE to be in Blocks view.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xmlString": "<xmlString>"
},
"name": "add_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xmlString | Yes | Blockly XML string (must be valid XML starting with <xml> or <block>) |