cad_modify
Change an open CAD model by running a script to create, edit, delete, or save geometry as a single undoable step, then verify the result.
Instructions
Run a script that CHANGES the app's open model (create, edit, delete, save).
Where the app supports it the whole script becomes one undo step, named by
summary (a few words the user will see in the app's undo history).
Same script rules as cad_read. Verify the result afterwards.
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": {
"app": "<app>",
"code": "<code>"
},
"name": "cad_modify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| code | Yes | ||
| summary | No | ||
| instance | No | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |