Set a Simulink parameter
cm_model_setSet or change a parameter on a loaded Simulink model or block, with optional model save; every change is logged and reversible.
Instructions
set_param on a loaded Simulink model or block. Logged; cm_revert_all restores the old value.
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": {
"path": "<path>",
"param": "<param>",
"value": "<value>"
},
"name": "cm_model_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Model or block path | |
| save | No | Also back up and save the model file | |
| param | Yes | Parameter name | |
| value | Yes | New value (numbers are converted to text as Simulink expects) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||