tracks_set_instrument
Replace a MIDI track's instrument with any built-in or installed plugin while preserving its name, clips, effects, and mixer settings. Undo restores the previous instrument and sound.
Instructions
Replace the instrument of a MIDI track with one from instruments.list (builtin, or an installed plugin, loaded in the background). The track keeps its name, clips, effects and mixer settings. Undoable: undo brings the previous instrument back with its sound.
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": {
"track": "<track>",
"instrument": "<instrument>"
},
"name": "tracks_set_instrument"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New track name (default: keep it). | |
| track | Yes | Track id (UUID string from tracks.list, stable) or 0-based index (shifts when tracks are added or moved). | |
| instrument | Yes | instruments.list uri, or a plugin name, e.g. Surge XT. |