autocad_send_command
Send raw AutoCAD command-line strings or AutoLISP to a live session for direct drafting and automation control. Disabled by default; enable via environment variable.
Instructions
Send a raw AutoCAD command-line string (or AutoLISP via (command ...)) to a live AutoCAD session. COM backend only.
DISABLED BY DEFAULT. Set AUTOCAD_MCP_ALLOW_RAW_COMMANDS=1 in the server's environment to enable it. A small denylist blocks a few especially dangerous verbs (QUIT, SHELL, NETLOAD, ...) but this is a guardrail, not a sandbox — anything the AutoCAD command line can do, this can do, including running arbitrary AutoLISP and overwriting files. Only enable it in a trusted, single-user environment.
Args: params (SendCommandInput): - command (str): raw command-line string, e.g. 'ZOOM E '.
Returns: str: JSON {"status": "sent", "command"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |