Insert Block
block_insertInsert a block at given coordinates, optionally set attribute values; rejects invalid block names or non-text attributes before writing.
Instructions
Insert a block and optionally set attribute values.
Refused before any write, on both engines: an undefined or layout block
name, and an attribute value that is not text — a string is written as
is (one line), an int or finite float as its plain digits (101 →
"101"), while null, booleans, lists and objects are refused naming
the tag (they used to be written as their Python repr). Values for tags
the block does not define are ignored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Insertion X | |
| y | Yes | Insertion Y | |
| name | Yes | Block definition name | |
| layer | No | Layer name | |
| scale_x | No | X scale factor | |
| scale_y | No | Y scale factor | |
| rotation | No | Rotation angle in degrees | |
| attributes | No | Attribute values: {TAG: value} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||