get_midi_notes
Retrieve all MIDI notes from a REAPER item using its track index or direct item ID. Optionally include invisible notes that lie outside item bounds.
Instructions
Get all MIDI notes from a MIDI item.
By default, returns only visible notes (within item bounds). Invisible notes exist in the MIDI data but won't sound during playback.
Item Identification - Accepts BOTH types:
track_pos_idx (integer): Simple index like 0, 1, 2
direct_item_id (string): Internal ID like "MediaItem*0x..."
Args: track_index: Index of the track item_id: EITHER integer track_pos_idx OR string direct_item_id include_invisible: If True, include notes outside item bounds (won't sound). Default: False
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>",
"item_id": "<item_id>"
},
"name": "get_midi_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| track_index | Yes | ||
| include_invisible | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |