Send MIDI to Logic Pro
logic_midiSend MIDI notes, chords, CC, program changes, pitch bend, aftertouch, SysEx, and MMC transport into Logic Pro via a virtual MIDI port so the selected or record-armed track plays or records it.
Instructions
Send MIDI into Logic Pro through the server's virtual MIDI port: notes, chords, CC, program change, pitch bend, aftertouch, SysEx, and MMC transport (mmc_play, mmc_stop, mmc_record, mmc_locate). Logic plays or records it on the selected or record-armed track. Use logic_transport for normal transport control; MMC is for setups that follow MIDI Machine Control. To list ports, read logic://midi/ports.
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_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | channel is 1-16 (default 1); other values are 0-127. send_note: {note, velocity, channel, duration_ms: 0-10000}. send_chord: {notes: [Int], velocity, channel, duration_ms}. send_cc: {controller, value, channel}. send_program_change: {program, channel}. send_pitch_bend: {value: -8192 to 8191, channel}. send_aftertouch: {value, channel}. send_sysex: {bytes: [Int]} or {data: "F0 ... F7"}. create_virtual_port: {name}. mmc_locate: {time: "HH:MM:SS:FF"}. | |
| command | Yes | The action to run. |