reaper_import_midi_file
Imports a .mid file into a live REAPER project, optionally expanding tracks, importing tempo, and loading an instrument for immediate MIDI editing or playback.
Instructions
Import a .mid file into live REAPER (zero modal dialogs; optionally expands tracks, sets tempo, and loads an instrument).
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": {
"midi_path": "<midi_path>"
},
"name": "reaper_import_midi_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| midi_path | Yes | ||
| instrument | No | ||
| start_beats | No | ||
| import_tempo | No | ||
| target_track | No | ||
| expand_tracks | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |