manage_files
Create, open, save, close, list, and switch active CAD drawing files (.dwg, .dxf), handling document lifecycle and active-file context for subsequent CAD operations.
Instructions
Open, save, create, close, list, and switch active CAD drawing files (.dwg, .dxf).
Behavior:
Mutation: Modifies document collection state.
savewrites files to disk;newinitializes fresh drawing;closeunloads drawing from CAD memory.Destructive Actions: Flag
close|falseas destructive if unsaved changes exist (discards edits without saving).Persistence: Saves document files permanently to disk in DWG or DXF formats.
Side Effects: Switches active document context for all subsequent CAD operations.
Usage Guidelines:
When to Use: Call to manage CAD file lifecycle (create blank drawing, save backup or work in progress, list open files, close tab, or switch active drawing).
Sibling Routing / Alternatives:
For plotting or exporting data/measurements into PDF, Excel, or BC3, use
export_data.For referencing external drawings without opening them as active editing documents, use
manage_xrefs.For CAD connection lifecycle (connecting to CAD software, status, undo/redo), use
manage_session.
Shorthand Grammar:
new: Create a new blank drawing.
save|filename|format: Save drawing to disk (formats: dwg, dxf, pdf. Default: dwg).
close|save_changes: Close active drawing (save_changes: true/false. Default: false).
list: List all currently open drawings and indicate active file.
switch|drawing_name: Switch active document focus to specified open drawing.
Parameters:
operations: Shorthand string (one command per line) or JSON array of file operation objects.
Returns: JSON string containing per-operation execution results, active file names, and status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |