track
Add, rename, delete, or select tracks and set volume, pan, mute, solo, arm, or color in REAPER. Preview changes with dry_run before any edit is applied.
Instructions
Track operations: add, delete, rename, select, set_volume (dB), set_pan (-1..1), mute, solo, arm, set_color. Every mutation runs in a REAPER undo block. Supports dry_run. delete is destructive — confirm intent first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pan | No | ||
| mute | No | ||
| name | No | add: new track name. | |
| solo | No | ||
| armed | No | ||
| color | No | {r,g,b} 0-255. | |
| index | No | add: 1-based insert position (omit to append). | |
| track | No | Exact track name (case-insensitive). | |
| action | Yes | ||
| select | No | ||
| dry_run | No | Preview: return what would run without changing the project. | |
| new_name | No | ||
| exclusive | No | select: deselect everything else. | |
| volume_db | No | ||
| track_contains | No | Case-insensitive substring; errors if it matches more than one track. | |
| target_track_guid | No | Stable REAPER track GUID; preferred when available. | |
| use_selected_track | No | Target the currently selected track instead of naming one. |