Insert Block Reference
entity_create_block_refInsert a block reference instance into a drawing using an existing block definition. Validates the name first, rejecting undefined or layout blocks before any write.
Instructions
Insert a block reference (instance of an existing block definition).
Refused before any write, on both engines: a name that is not a block
definition in this drawing (block 'X' is not defined — check
block_list), a layout block (*Model_Space / *Paper_Space, a
reference cycle) and a non-string name. The same gate as block_insert;
this tool is the no-attributes form.
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": {
"name": "<name>",
"x": "<x>",
"y": "<y>"
},
"name": "entity_create_block_ref"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Insertion X | |
| y | Yes | Insertion Y | |
| name | Yes | Block definition name (must exist in drawing) | |
| layer | No | Layer name | |
| scale_x | No | X scale factor | |
| scale_y | No | Y scale factor | |
| rotation | No | Rotation angle in degrees |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||