10 commands for time: play, stop and record, move the playhead to a bar, set the cycle range, the tempo and the tempo changes along the song, place markers, zoom and show panels.
Your agent sends each command to the one tool, named logic: {command: "fader", params: {strip: "Bass", db: -6, confirmed: true}}. The reply says verified: true only when Logic showed the expected state.
transportRead the transport, play, stop, pause, or step the playhead, without bringing Logic to the front.
transport {} reads: playing, recording, position, tempo, cycle, metronome, count-in. transport {action: 'play' | 'stop' | 'pause'} presses the control-bar button and reads the play state back (Logic has no separate pause: stop leaves the playhead where it is). transport {action: 'rewind' | 'forward', bars?: 1} moves the playhead by whole bars; transport {action: 'start'} goes to bar 1.
Reads, or moves the view, the transport or the selection: no confirmation needed.
recordStart or stop recording, and tell what was recorded.
record {} reads: recording or not, armed tracks, selected track. record {action: 'start', confirmed: true} starts (Logic records on the armed tracks, or on the selected one; the song plays out loud; a count-in may run first; with Cycle on it starts at the cycle start, not at the playhead). record {action: 'stop'} stops and lists the new regions. A Logic question before recording is returned, never answered.
Reads freely. Each change it makes needs confirmed: true.
control_barList or set the control-bar switches: metronome, count-in, replace, autopunch, solo…
control_bar {} lists every control shown in the control bar with its state. control_bar {name: 'Metronome Click' | 'Count In' | 'Replace' | 'Autopunch' | 'Solo' | …} reads one. Add on: true | false (or toggle: true) to set it, without bringing Logic to the front; read back. Play, Record and Cycle have their own commands.
Reads, or moves the view, the transport or the selection: no confirmation needed.
cycle {} reads on/off and its bars. cycle {on: true | false} | {selection: true} (locators from the selected regions) | {start: 5, end: 13} (drags the cycle edges in the ruler), each with confirmed: true.
Reads freely. Each change it makes needs confirmed: true.
tempo_eventList, create, change, move or delete tempo changes along the song.
tempo_event {} lists. {action: 'create' | 'set', bar, bpm} | {action: 'move', bar, to_bar} | {action: 'delete', bar}, each with confirmed: true. Whole-number tempos. The bar-1 event is the project tempo: use tempo.
Reads freely. Each change it makes needs confirmed: true.
markerList, create, rename, move, delete markers, or jump to one.
marker {} lists (bar, name). {action: 'create', bar?, name?} | {action: 'create', markers: [{bar: 1, name: 'Intro'}, {bar: 9, name: 'Verse'}]} (several in one call, much faster than one call each) | {action: 'rename', marker | number | bar, to} | {action: 'move', marker, to_bar} | {action: 'delete', marker}, each with confirmed: true. {action: 'goto', marker} is free. Rename writes the name field without any keystroke; Logic comes to the front for a second.
Reads freely. Each change it makes needs confirmed: true.
zoomRead or set the zoom of the Tracks area, or fit everything in view.
zoom {} reads the horizontal and vertical zoom sliders with their min and max. zoom {horizontal?: value, vertical?: value} sets them, read back. zoom {fit: true} toggles Logic's zoom-to-fit (selection, or all contents).
Reads, or moves the view, the transport or the selection: no confirmation needed.
panelRead, show or hide a panel of the main window.
panel {name: 'Mixer' | 'Library' | 'Inspector' | 'Editors' | 'Loop Browser' | 'Browsers' | 'Smart Controls' | 'List Editors' | 'Note Pads' | 'Toolbar' | 'Quick Help'} reads. Add on: true | false to show or hide (read back), or toggle: true to flip. Mixer and Editors share the bottom of the window.
Reads, or moves the view, the transport or the selection: no confirmation needed.