10 commands for everything else: search the 10,636 menu items and key commands of Logic, press a menu or a right-click menu by its path, read or answer the open dialog, undo or redo one named step, and make a mouse gesture that is checked before it acts.
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.
findSearch Logic's 10,636 commands: where each one is and its shortcut.
find {query: 'bounce in place', kind?: 'menu' | 'key_command', limit?}. Read-only. Tells which of menu, local_menu, context_menu or key_command reaches the command.
Reads, or moves the view, the transport or the selection: no confirmation needed.
menu_listList the menu bar, or one menu or submenu.
menu_list {path?: 'File > Export'}. Each entry: title, shortcut, enabled, checked, submenu. Read-only. An item can read disabled until its menu has been opened once.
Reads, or moves the view, the transport or the selection: no confirmation needed.
menuPress any menu-bar item by its path.
menu {path: 'File > Bounce > Regions in Place…', confirmed?, activate?}. Reports what appeared: windows, dialog or sheet (described), check mark before and after; verified is true only when a check mark flipped, since the effect of any other item cannot be known here. View, navigation and selection items are free; everything else needs confirmed: true. Never pressed: reset settings, key command initialisation or import, quit, share and mail, downloads, clean up, delete files. activate: true brings Logic to the front first (the Edit menu is only complete then).
Reads freely. Each change it makes needs confirmed: true.
local_menuList or press the local menu bar of an area or editor (Edit, Functions, View…).
local_menu {menu: 'Edit' | 'Functions' | 'View' | 'Options' | 'Lanes' | 'Layout' | 'Audio File', area?: 'tracks' | 'mixer', window?: 'Piano Roll', index?, path?, confirmed?}. No path, or a path ending on a submenu, only lists.
Reads freely. Each change it makes needs confirmed: true.
context_menuList or press a right-click menu (region, track, lane, strip, control-bar button).
context_menu {target: 'region' | 'track' | 'lane' | 'strip' | 'control', name, index?, path?, confirmed?}. name: exact region name, track name or number, strip name, or a control-bar button ('Play', 'Record', 'Cycle', 'Metronome Click', 'Control Bar'). Without path it lists; with path it presses ('Convert > Convert to MIDI Region').
Reads freely. Each change it makes needs confirmed: true.
dialogRead, fill or answer the Logic dialog, sheet or alert that is open.
dialog {} reads it: texts, fields with labels and values, buttons. dialog {action: 'set', field, value | on | option} writes a field, checkbox, pop-up or slider (read back). dialog {action: 'press', button: 'exact title', confirmed: true} presses a NAMED button. dialog {action: 'close', confirmed: true} closes a settings window that has no OK or Cancel (Project Settings…); a question is never closed this way. A dialog is never answered by default: read it, decide, then press.
Reads freely. Each change it makes needs confirmed: true.
key_commandSend the shortcut of a Logic key command (last resort).
key_command {name: 'exact key command name', group?, confirmed: true}. For commands that have no menu item. The key goes to the Logic process only, with Logic in front, and only for view, navigation, selection and transport commands. Without confirmed it only shows the key it would send.
Reads freely. Each change it makes needs confirmed: true.
undoTell what Undo would undo, or undo.
undo {} tells what Edit > Undo would undo. With Logic in the background its Edit menu can be out of date: add activate: true (Logic comes to the front, its Edit menu opens for a moment and closes) to read the exact name, e.g. 'Undo Load Patch'. undo {steps: 1..20, confirmed: true, activate?: true} undoes, each step read back. Read what a gesture did before undoing it.
Reads freely. Each change it makes needs confirmed: true.
redo {} | redo {steps: 1..20, confirmed: true}. Same rules as undo.
Reads freely. Each change it makes needs confirmed: true.
mouseA real mouse gesture on a named element, checked before it acts.
mouse {action: 'click' | 'double_click' | 'drag', target: 'region' | 'track' | 'lane' | 'strip' | 'ruler' | 'cycle', name?, index?, fx?, fy?, bar?, and for drag: to_fx / to_fy | to_bar | bars | dx / dy, confirmed: true}. Logic comes to the front; refused while the user types or moves the mouse; nothing happens unless the element under the pointer is the named target; the pointer is put back. Reported verified: false, since the effect of a free gesture cannot be read: check with another command.
Reads freely. Each change it makes needs confirmed: true.