← MidiPilot overview

MidiPilot AI Tools Reference

In Agent mode the model does its work through tools: it inspects the file, writes events, and checks the result by calling them one after another. This page lists every tool with what it does, and points at the MCP server that hands the same set to external AI clients.


AI Tools Reference

In Agent mode, the AI has access to 27 tools (22 core + 5 FFXIV-specific) for inspecting and modifying MIDI files. The 22 core tools are the same ones exposed over the MCP server, which adds two document tools of its own:

ToolDescription
get_editor_stateRead file info, tracks, tempo, time signature, cursor position, and the selected-event count
get_track_infoGet detailed info for a specific track: name, assigned channel, total event count, and how many of those are notes
get_selectionRead the user's current selection as full events, each with a 0-based index (the index delete_events_by_index expects)
create_trackCreate a new MIDI track
rename_trackRename an existing track
set_channelSet the MIDI channel for a track
remove_trackDelete a track and all its events (cannot remove the file's last track)
insert_eventsAdd new MIDI events (notes, control changes, etc.)
replace_eventsModify existing events in a range
delete_eventsDelete events in a tick range on a track
delete_events_by_indexDelete specific events from the current selection by 0-based index (e.g. every second selected note)
query_eventsRead events in a tick range on a track
move_events_to_trackMove events between tracks
transpose_eventsTranspose notes by semitones - a track, a tick range, or the whole file - as one undo step, optionally folded octave-wise into the bard range C3-C6
split_chords_to_tracksSplit a track's chords voice-wise onto new tracks (voice 1 = highest note) - the standard way to turn a chordal part into monophonic FFXIV performers
copy_events_to_trackCopy notes to another track, optionally restricted to a tick range - e.g. double a melody onto a second performer, then transpose the copy
search_helpSearch the built-in manual - for questions about the editor itself ("how do I split drums?"), the AI looks the answer up instead of guessing
get_help_sectionRead one manual section's full text; the answer cites the page so you can click through
set_tempoChange the tempo (BPM)
set_time_signatureChange the time signature
convert_tempo_preserve_durationRe-tempo material while keeping its real-time duration - scales event ticks and updates the tempo map so e.g. a 90 BPM vocal line fits a 180 BPM project with the bars lining up again. Works on the whole file, chosen tracks or channels, or the current selection; defaults to a dry run and requires the user's confirmation before the real pass
set_ffxiv_modeTurn FFXIV Bard Performance mode on or off - the five FFXIV tools below appear and disappear with it, and get_editor_state reports the current state as ffxivMode
setup_channel_patternAuto-configure MidiBard2 channel mapping (FFXIV)
convert_drums_ffxivConvert GM drum kit to FFXIV-compatible tone-mapped notes
validate_ffxivCheck FFXIV Bard Performance rule compliance: every same-tick note collision and stacked duplicate with its tick, notes outside C3-C6, and track names matching no FFXIV instrument - the same engine as Tools → Check FFXIV Playability, see Check FFXIV Playability
analyze_voice_loadRead-only audit of the FFXIV 16-voice ceiling and 14 notes/sec/channel rate cap. Returns globalPeak, overflowRanges and rateHotspots - see FFXIV Voice Limiter
auto_fit_voice_loadThe matching action tool: thins overloaded moments and over-dense passages (whole file or a tick range). Defaults to a dry run and requires the user's confirmation before the real pass - see Auto-Fit Voice Load

MCP Server - External AI Clients

MidiEditor AI includes a built-in MCP (Model Context Protocol) server that exposes the same 22 core tools MidiPilot uses, plus two document tools of its own - and the five FFXIV tools whenever FFXIV mode is on. Instead of using the built-in chat panel, you can connect Claude Desktop, VS Code Copilot, Cursor, Windsurf, or any other MCP-compatible client and let it edit your MIDI files directly.

Enable the MCP server in Settings → MidiPilot AI → MCP Server, copy the config JSON, paste it into your AI client, and you’re ready. All tool calls appear in the Protocol panel with the client name (e.g. “MidiPilotMCP (VS Code Copilot Claude Opus 4.6)”) and support full undo.

📖 Full MCP Server Documentation →


See also