track_set_folder
Set a track's folder state in REAPER using its index and a depth value. Mark tracks as normal, folder parent, or last in folder to organize the session.
Instructions
Set folder state. 0=normal, 1=folder parent, -1=last in folder.
Args: track_index: 0-based track index. folder_depth: Folder depth value.
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>",
"folder_depth": "<folder_depth>"
},
"name": "track_set_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| folder_depth | Yes |