add_block
Add a single block to an mBlock project, optionally chaining it after another block. Specify opcode, fields, parameters, position, and target for precise placement.
Instructions
Add a single block, optionally chained after afterId. Tip: describe_opcode first.
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": {
"opcode": "<opcode>"
},
"name": "add_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| path | No | ||
| dryRun | No | ||
| fields | No | ||
| opcode | Yes | ||
| params | No | ||
| target | No | ||
| afterId | No | ||
| confirm | No |