set_device_routing
Set a device's input routing in Ableton, like selecting a sidechain source track. Specify track, device, and routing channel to configure audio inputs.
Instructions
Set a device's input routing (e.g., select a sidechain audio source).
For sidechain on Compressor/Gate: typical usage is to set the routing channel to another track's name (e.g., "5-Kick"). Names are matched case-insensitively via substring.
Call get_device_routings first to discover the exact type/channel names available.
Parameters:
track_index: Track containing the device
device_index: Position in the chain
routing_type_name: Routing TYPE name to match (e.g., "External Input"). Empty to skip.
routing_channel_name: Routing CHANNEL name to match (e.g., "5-Kick"). Empty to skip.
track_kind: 'regular' (default), 'return', or 'master'
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_index": "<track_index>",
"device_index": "<device_index>"
},
"name": "set_device_routing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_kind | No | regular | |
| track_index | Yes | ||
| device_index | Yes | ||
| routing_type_name | No | ||
| routing_channel_name | No |