manage_session
Manage CAD application lifecycle, COM connections, viewport controls, and undo/redo history to connect, inspect, and control active CAD sessions.
Instructions
Manage CAD application lifecycle, COM connection, viewport controls, and undo/redo history.
Behavior:
Mutation: Controls external CAD application process, active COM session, and editor state.
Persistence: Connection state persists across subsequent tool calls in the MCP server process.
Side Effects: Can launch CAD application process (connect), terminate session (disconnect), or launch local web dashboard in browser (open_dashboard).
Usage Guidelines:
When to Use: Call to verify CAD connectivity, connect to running CAD, inspect CAD vendor info, or perform composite session operations (e.g. connect + zoom_extents + status).
Sibling Routing / Alternatives:
For pure camera, zoom, 3D viewpoints, and visual styles, prefer
manage_view.For opening, saving, closing, or switching drawing files, use
manage_files.For creating geometry, use
draw_entities.
Actions & Parameters:
connect: Launches and connects to auto-detected CAD software (AutoCAD, ZWCAD, GstarCAD, BricsCAD).
disconnect: Unlinks from active CAD COM session.
status: Returns current connection status, active adapter type, and drawing name.
list_supported: Lists installed and supported CAD application vendors.
check_running: Detects running CAD processes without attaching.
zoom_extents: Zooms active viewport to fit drawing extents.
screenshot: Captures active CAD window raster screenshot as base64 PNG.
export_view: Generates internal drawing raster preview.
undo: Steps back in drawing history. Parameter:
count(int, default: 1).redo: Steps forward in drawing history. Parameter:
count(int, default: 1).open_dashboard: Launches web dashboard in browser. Parameters:
host,port.
Parameters:
operations: Shorthand string or JSON array of session action objects.
Returns: JSON string with per-operation status, connection details, and results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |