13 commands for plug-ins: list what this Mac offers, insert, replace or remove a plug-in on a strip, read and write its parameters, set a Channel EQ band in Hz, dB and Q, load and save presets, and set a side chain.
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.
insertAdd, replace or remove a plug-in on a strip (Apple or third-party).
insert {strip: 'exact strip name' | track: mixer index, path: 'Dynamics > Compressor' | 'Audio Units > Valhalla DSP, LLC > ValhallaDelay', configuration?: 'Stereo', slot?: Int, replace?: 'plug-in in place', confirmed: true}. Without slot it goes in the first empty slot below the strip's last plug-in (slot 0 = top). With replace it REPLACES that plug-in; path: 'No Plug-in' with replace REMOVES it. Works with Logic in the background. Read back on the strip.
Reads freely. Each change it makes needs confirmed: true.
It opens a Logic menu, so it waits until your keyboard is quiet.
plugin_listList the plug-ins this Mac offers, read live from Logic's plug-in menu (Apple and third-party).
plugin_list {} lists the root: Apple's categories and 'Audio Units'. plugin_list {path: 'Dynamics' | 'Audio Units > Valhalla DSP, LLC', deep?: false, track?} goes down; deep: true also reads one level below each entry (slower). Read-only: the menu is opened on an empty effect slot, read, and closed without choosing. A full path works with insert.
Reads, or moves the view, the transport or the selection: no confirmation needed.
It opens a Logic menu, so it waits until your keyboard is quiet.
eq_bandRead or set one band of a Channel EQ in Hz, dB and Q.
eq_band {track, slot | window, band: 'low_cut' | 'low_shelf' | 'peak1' | 'peak2' | 'peak3' | 'peak4' | 'high_shelf' | 'high_cut' (or 1…8)} reads the band. Add on?: true | false, frequency?: Hz, gain?: dB, q?, slope?: '24 dB/Oct' (cuts only) and confirmed: true to set them; each value is read back as Logic displays it.
Reads freely. Each change it makes needs confirmed: true.
openOpen a plug-in window.
open {track: mixer index, slot: 0 = top}. The window title is the track name. Every plug-in command also accepts {window: 'track name', plugin?: 'name'} to address a window that is already open, without the Mixer.
Reads, or moves the view, the transport or the selection: no confirmation needed.
closeClose a plug-in window.
close {track, slot | window}.
Reads, or moves the view, the transport or the selection: no confirmation needed.
viewSwitch a plug-in window between its editor and the generic Controls view.
Reads, or moves the view, the transport or the selection: no confirmation needed.
It opens a Logic menu, so it waits until your keyboard is quiet.
paramsList every parameter of a plug-in, with its value and range.
params {track, slot | window, filter?: 'text'}. Switches the window to Controls view and lists each parameter: name, kind (slider | popup | checkbox | radio), raw value, min, max, displayed text ('45 %', '5000 Hz'). Works for any Apple or third-party plug-in.
Reads, or moves the view, the transport or the selection: no confirmation needed.
set {track, slot | window, param: 'name from params', value? | display? | option? | on?, confirmed: true}. Slider: value (raw units) or display (the number in the displayed unit: 2000 for 2000 Hz, 2.5 for 2.5 s). Pop-up or radio: option (exact title). Checkbox: on. Read back.
Changes the project or writes a file: every call needs confirmed: true.
optionsList the choices of a pop-up or radio parameter.
options {track, slot | window, param}.
Reads, or moves the view, the transport or the selection: no confirmation needed.
It opens a Logic menu, so it waits until your keyboard is quiet.
preset_menuBrowse a plug-in's preset menu.
preset_menu {track, slot | window, path?: 'Category'}. Lists the header preset menu (categories, then a category's presets) read live. Read-only.
Reads, or moves the view, the transport or the selection: no confirmation needed.
It opens a Logic menu, so it waits until your keyboard is quiet.
presetLoad a plug-in preset.
preset {track, slot | window, name: 'Category > Preset', confirmed: true} loads it straight from the menu. preset {name: 'Preset', confirmed: true}or {step: 'next' | 'previous', max_steps?, confirmed: true} steps the header buttons until the name shows. WARNING: loading a preset replaces unsaved tweaks. The name is read back in the header.
Changes the project or writes a file: every call needs confirmed: true.
It opens a Logic menu, so it waits until your keyboard is quiet.
preset_saveSave a plug-in's current settings as a preset.
preset_save {track, slot | window, name, confirmed: true}. Uses the header menu > Save As…, so the preset appears in preset_menu and reloads with preset. Works for third-party Audio Units.
Reads freely. Each change it makes needs confirmed: true.
sidechainRead or set a plug-in's side chain source.
sidechain {track, slot | window} reads the source and lists the Audio and Inst sources. Add path: 'Audio > Drums' | 'Bus > Bus 3' | 'Internal' and confirmed: true to set it (a unique name prefix is enough). Read back.
Reads without parameters. Setting it (path, source) needs confirmed: true.
It opens a Logic menu, so it waits until your keyboard is quiet.