item_get_all
Get all media items from a REAPER project, filtered by track if needed. Includes source file paths and basenames for audio items, making embedded BPM/key visible from sample filenames.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "item_get_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_results | No | ||
| track_index | No |