Logic Pro tracks
logic_tracksModify single tracks or selected tracks in an open Logic Pro project: select, create, delete, duplicate, rename, mute, solo, arm, color, or manage stacks. Read 0-based track indexes first.
Instructions
Change single tracks or a chosen set of tracks in the open Logic Pro project: select, create (audio, instrument, drummer), delete, duplicate, rename, mute, solo, arm, set_color, and track stacks (create_stack, flatten_stack, stack_add, stack_remove). Track indexes are 0-based, top to bottom; read logic://tracks first to get them. To clean up a whole session at once, use logic_organize instead. delete removes the track and its regions. flatten_stack, stack_add and stack_remove refuse summing stacks, because ungrouping one deletes its channel strip and plug-ins. Color and stack commands bring Logic to the front.
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": {
"command": "<command>"
},
"name": "logic_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | select: {index} or {name}. rename: {index, name}. mute/solo/arm: {index, enabled}. delete/duplicate: {index}. set_color: {indices: [Int], color: 1-96} (Logic's palette, 4 rows of 24, top-left is 1). create_stack: {indices: [Int], kind: "folder"|"summing", name?}. flatten_stack: {index} of the stack's main track. stack_add/stack_remove: {stack, indices}. set_color and create_stack accept {use_selection: true} instead of indices. create_* take no params. | |
| command | Yes | The action to run. |