mcp_opendaw_get_script_device_code
Retrieve the current JavaScript code from a scriptable device in openDAW, returning the full code string, header line, and code length.
Instructions
Read the current user JavaScript code from a scriptable device.
Returns the full code string, header line, and code length.
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>"
},
"name": "mcp_opendaw_get_script_device_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_index | Yes | ||
| device_type | Yes | ||
| device_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |