acad_import_block
Copy a block definition from another DWG into the current drawing while leaving the source file read-only; duplicate block names are automatically renamed with a copy suffix.
Instructions
Copy one block definition from another .dwg into this drawing. The source file is only read.
If this drawing already has a block with that name, the copy is named NAME_copy01 (then _copy02, ...). Use acad_list_file_blocks to get the name. If the file is outside the allowed folders, ask the user first, then pass confirm_outside_root=true.
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": {
"path": "<path>",
"block_name": "<block_name>"
},
"name": "acad_import_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| block_name | Yes | ||
| confirm_outside_root | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||