item_get_all
Retrieves every media item from the active REAPER project, with optional track filtering and a configurable cap on results.
Instructions
Get all media items. Filter by track or -1 for all.
Each item includes source_file (full path) and source_filename
(basename only) for audio items — the actual dragged-in media file
name, e.g. from a Splice/sample-pack import. Sample vendors commonly
embed BPM/key in the filename itself ("Karra_Vocal_Loop_120bpm_Cmin.wav"),
which the take's editable name field does not reliably preserve.
Both are "" for MIDI items or items with no source.
Args: track_index: Track filter (-1=all). max_results: Max items to return (default 200, hard ceiling 2000). A chop-heavy project can have hundreds of items — narrow with track_index if the result is truncated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_results | No | ||
| track_index | No |