mcp_opendaw_set_script_param
Set a parameter value on a scriptable device by label, with automatic validation and clamping to the declared range. Returns adjustment info for corrected values.
Instructions
Set a parameter value on a scriptable device by label.
The parameter must exist (created from a // @param declaration in the code).
The value is validated against the declaration's range (min/max) and mapping type:
bool: snaps to 0 or 1
int: rounds to nearest integer within [min, max]
linear/exp/unipolar: clamps to [min, max] Response includes
clampedflag andrangeinfo if the value was adjusted.
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": {
"device_type": "<device_type>",
"unit_index": "<unit_index>",
"device_index": "<device_index>",
"param_label": "<param_label>",
"value": "<value>"
},
"name": "mcp_opendaw_set_script_param"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| unit_index | Yes | ||
| device_type | Yes | ||
| param_label | Yes | ||
| device_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |