drawing
Manage AutoCAD drawing files by creating, opening, saving, exporting to DXF or PDF, purging unused objects, and checking extents, layers, blocks, and system variables.
Instructions
Drawing file management.
Operations:
create — Create a new empty drawing. data: {name?}
open — Open an existing drawing. data: {path}
info — Get drawing extents, entity count, layers, blocks.
save — Save current drawing. data: {path?} (saves to path if given, else QSAVE)
save_as_dxf — Export as DXF. data: {path}
plot_pdf — Plot to PDF. data: {path}
purge — Purge unused objects.
get_variables — Get system variables. data: {names: [...]}
undo — Undo last operation.
redo — Redo last undone operation.
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": {
"operation": "<operation>"
},
"name": "drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| operation | Yes | ||
| include_screenshot | No |