ai_blocks
Read, replace, add, clear, diagnose, or repair Blockly XML in a live App Inventor workspace; use set over add because editor edits are not transactional.
Instructions
Blockly workspace: context/get/set/add/clear/diagnostics/repair. Prefer set over add; the editor is not transactional.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ai_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | Blockly XML (set/add) | |
| apply | No | repair: write the fix back (default true) | |
| action | No | What to do | |
| format | No | get: xml (default) or summary |