cw_run_command
Executes a Cakewalk SONAR menu command by numeric ID via WM_COMMAND, enabling version-independent automation and detection of whether the command was handled.
Instructions
Run a SONAR menu command by numeric id via WM_COMMAND. Version-independent: works on any build whose menu exposes the command. Get ids from cw_list_commands. Returns whether the window list changed, so a registered-but-unhandled command is distinguishable from a working one.
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": {
"cmdId": "<cmdId>"
},
"name": "cw_run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmdId | Yes | Menu command id, e.g. 34861 (0x882D Preferences) | |
| confirm | No | Required for destructive ids (0xE102 File > Close, 0x853D Revert). Pass "close" or "revert" to acknowledge | |
| keepOverlays | No | Do not close modal panels first |