app_put_and_run
Inject block scripts into mBlock, execute the hat block, and retrieve a variable's value in a single call.
Instructions
LIVE combo (like upload-and-monitor): inject a script, run its hat, then read back a variable — new blocks to visible result in one call.
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": {
"blocks": "<blocks>"
},
"name": "app_put_and_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| blocks | Yes | ||
| target | No | Sprite1 | |
| readVar | No | Variable to read back after running | |
| hatOpcode | No | event_whenflagclicked |