edit_macro
Open a macro in the SolidWorks VBA editor by specifying the full file path. Edit macro code directly in the Visual Basic editor.
Instructions
Open a macro in the SolidWorks VBA editor
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": {
"macroPath": "<macroPath>"
},
"name": "edit_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macroPath | Yes | Full path to the macro file |