run_command
Send raw AutoCAD command-line input to execute drawing commands and options. Shell, script, and loader commands are blocked; AutoLISP requires POWER_CAD_ALLOW_LISP=1.
Instructions
Send raw input to the AutoCAD command line (AutoCAD backend only). Shell/script/loader commands are blocked; AutoLISP needs POWER_CAD_ALLOW_LISP=1.
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": {
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | AutoCAD command-line input, e.g. '_.FILLET R 5 ' or '-LAYER S Walls '. Newlines/spaces act as Enter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||