13 commands to start a session: check the permissions and the Logic version, read the project and its tracks, create, open or save a project, audit it before a bounce, and replay what the server did.
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.
helpList the commands, or explain one.
help {} lists every command by domain with one line each. help {command: 'bounce'} gives its parameters. help {domain: 'mixer'} details a whole domain (start | transport | tracks | mixer | plugins | files | menus). help {topic: 'recipes'} lists the usual sequences of calls (first look, audit and tidy, bounce, export, record a take…); help {topic: 'recipes', recipe: 'bounce_ready'} gives the steps of one.
Reads, or moves the view, the transport or the selection: no confirmation needed.
batchRun several commands in a row, stopping at the first one that does not succeed.
batch {steps: [{command: 'name', params: {…}}, …], dry_run?: false, continue_on_error?: false}. 30 steps at most. Every step is checked before the first one runs (known command, confirmed: true where its command needs it, given in that step's params). dry_run: true only returns the plan. A step that fails, or changes the project without reading its result back, stops the batch; the steps after it are not run and nothing is undone automatically.
Reads freely. Each change it makes needs confirmed: true.
traceShow what the server did lately: each call, its parameters, result and duration.
trace {limit?: 20, failures?: false} is read-only; newest last. trace {clear: true, confirmed: true} erases the journal. The journal is also kept in a file on this Mac (its path is returned).
Reads, or moves the view, the transport or the selection: no confirmation needed.
supportGather what to attach to a request for help: health, recent calls, recent failures.
support {} is read-only. save: true and confirmed: true also write the report to the Desktop. Read it before sharing: recent calls show their parameters.
Reads freely. Each change it makes needs confirmed: true.
healthCheck permissions, Logic's edition, version and language, and the project window.
health {} is read-only. ready: true means every command can work; otherwise problems says what to fix (Accessibility permission, Logic not running, interface not in English, a Logic alert open).
Reads, or moves the view, the transport or the selection: no confirmation needed.
projectRead the project, or create, open, save, close a project, or switch between open projects.
project {} reads: name, file, tempo, play state, visible tracks and regions, and the other open projects. project {action: 'new', type?: 'audio' | 'midi' | 'session_player', kind?, count?: 1..16, name?: 'Song', in?: '~/Desktop', confirmed: true} creates a project in ONE call: with type / count its first tracks are created (e.g. 12 audio tracks), with name it is saved as a project folder <in>/<name>/<name>.logicx (in defaults to the Desktop; an existing folder is never overwritten). Works from Logic's 'Choose a Project' window too. Without them Logic's New Track sheet is returned: fill it with new_tracks (which takes the open sheet), never Cancel it (Logic would close the new project). A new project is untitled: save it where it belongs with save_as. project {action: 'open', path: '/…/Song.logicx', confirmed: true} opens a project without any file panel. project {action: 'save', confirmed: true} saves and proves it by the file's write time. project {action: 'save_as', path: '/…/New Name.logicx', confirmed: true} saves under a new name and place, never over an existing file (when Logic's panel writes elsewhere, the project is closed, moved to path and reopened). project {action: 'close', name: 'exact current project name', unsaved?: 'save' | 'discard', confirmed: true} closes it; without unsaved, Logic's save question is returned. project {action: 'switch', name} makes another open project the one commands act on.
Reads freely. Each change it makes needs confirmed: true.
appTell whether Logic Pro is running, launch it, or quit it.
app {} reads: running, version, open projects. app {action: 'launch'} starts Logic Pro without taking the keyboard and waits until it answers. app {action: 'quit', confirmed: true} asks Logic to quit; if a project has unsaved changes, Logic's question is returned and never answered.
Reads freely. Each change it makes needs confirmed: true.
project_auditGo round the project before a bounce or an export: what would go wrong, and what to tidy.
project_audit {markers?: true} is read-only. Returns status (clean | attention | blocked), findings (code, severity info | warn | blocker, area, message, tracks) and cleanup steps: forgotten solos, armed tracks, duplicate or default track names, empty tracks, MIDI regions without an instrument, an open dialog, a project never saved, cycle on, no markers. Plug-ins and instruments are read only when the Mixer is shown. markers: true opens the Marker List for a moment to read it.
Reads, or moves the view, the transport or the selection: no confirmation needed.
project_cleanupList the tidy-up steps of the project, or apply one.
project_cleanup {} (or action: 'plan') lists the steps the project needs now, read-only. project_cleanup {action: 'apply', step: '<id>', confirmed: true} applies one: clear_solo, clear_arm, show_mixer, rename_default_names and rename_duplicates_<name> (both with names: {"<track index>": "new name"}). The plan is rebuilt at each call, so only a step the project still needs can run; review_empty_tracks and plan_markers are decisions, returned with the command to run by hand.
Reads freely. Each change it makes needs confirmed: true.
track_selectSelect one track, or several, without bringing Logic to the front.
track_select {index: 0-based position in the track list | number: 1-based | name: exact track name}, or {indexes: [0, 2, 3]} | {names: ['Kick', 'Bass']} for several (e.g. before Track > Create Track Stack…). Selects those tracks and only them, then reads the selection back (index is not the mixer strip index that mixer commands call track). Several commands act on the selected track (instrument, import_audio).
Reads, or moves the view, the transport or the selection: no confirmation needed.
track_stackRead, open or close one Track Stack by its arrow.
track_stack {index | name} reads whether the stack is open. track_stack {index | name, open: true | false} shows or hides its subtracks (read back), without mouse and without bringing Logic to the front. A closed stack keeps tracks {} short: a Drum Machine Designer kit alone holds 16 to 29 subtracks. The main track of a stack is selected together with its subtracks (track_select says so).
Reads, or moves the view, the transport or the selection: no confirmation needed.
templateOpen a ready-made production setup (tracks, sounds, regions, bus) as a new project, in about two seconds.
template {} lists the templates (template {genre: 'afro house'} lists one family: its beat, its full track, its blocks). template {name: 'afro house beat'} previews one. A block of the open project's genre can be asked by its part alone: template {name: 'pad', confirmed: true} (or part: 'pad') adds the pad of the genre the open project was started from; give genre: 'techno' to choose another, and if the genre cannot be told the answer lists the choices. A block (a template with no project of its own) is always added to the open project. template {name, tempo?: 132, save_as?: 'My Song', in?: '~/Music/Logic', play?: true, unsaved?: 'save' | 'discard', confirmed: true} copies the template project under a new name (never over an existing project; the template itself is never opened), opens the copy, sets the tempo, starts playback, and answers with one line: tracks, seconds, verified. With into: 'current' (and bar?: 1) the template is ADDED to the open project instead: one region on a new track, then its sound loaded on that track (about 3 to 4 s; only for templates whose listing shows this mode). Without into it opens a NEW project: when Logic asks whether to save the current one, give unsaved ('save' or 'discard') and that answer is pressed; without it the question is returned, never answered.
Reads freely. Each change it makes needs confirmed: true.