item
Manage media clips on REAPER tracks: list, update, import, split, delete, or duplicate clips, with beat-based timing and optional fade, gain, mute, and track placement controls.
Instructions
Media items on a track. action: list | update | import | split | delete | duplicate. Times are beats except fade_in_sec / fade_out_sec (seconds, REAPER native). update: gain_db, fades and fade_*_shape, loop, mute, position_beats (move), length_beats (trim the end), left_edge_beats (trim or extend the start; the content stays in place), dest_track_index (move to another track; returns the new indices), active_take. list shows take name, source file and take count. split cuts at at_beats (inside the item) and returns the pieces' item_indices. delete takes item_index or item_indices. duplicate copies the item (unpooled) to position_beats (default: right after it), optionally on dest_track_index. import uses a path already on the REAPER host; as_new_track=true makes new tracks. Item indices follow position, so re-list after edits that move items.
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": {
"action": "<action>"
},
"name": "item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | ||
| mute | No | ||
| path | No | ||
| action | Yes | ||
| gain_db | No | ||
| at_beats | No | ||
| item_index | No | ||
| active_take | No | ||
| fade_in_sec | No | ||
| start_beats | No | ||
| track_index | No | ||
| as_new_track | No | ||
| fade_out_sec | No | ||
| item_indices | No | ||
| length_beats | No | ||
| fade_in_shape | No | ||
| fade_out_shape | No | ||
| position_beats | No | ||
| left_edge_beats | No | ||
| dest_track_index | No |