reaper_insert_midi_item
Create an empty MIDI item on a track at a specified time range. Returns item index, position, and length for adding notes later.
Instructions
Create an empty MIDI item on a track spanning [start, end] seconds.
Returns {item_index, position_sec, length_sec}. Add notes with
reaper_add_midi_note.
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": {
"track_index": "<track_index>",
"start_sec": "<start_sec>",
"end_sec": "<end_sec>"
},
"name": "reaper_insert_midi_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | 0-based track index | |
| start_sec | Yes | Item start in seconds | |
| end_sec | Yes | Item end in seconds (must be > start) |