bricscad_run_lisp
Run LISP expressions inside BricsCAD and get the last expression's value back, enabling automation and drawing edits when no dedicated tool exists.
Instructions
Run LISP in BricsCAD and return the value of its last expression.
LISP can change or delete files and start programs, so use a dedicated tool where one exists. Do not use vla-save or vla-saveas: they open a dialog or fail. Use _.QSAVE or _.SAVEAS. Do not close the only open drawing: the listener stops.
code: one or more LISP expressions. timeout: seconds to wait for an answer.
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": {
"code": "<code>"
},
"name": "bricscad_run_lisp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||