duplicate_item
Copy a MIDI item one or more times, placing each copy directly after the previous, to repeat loops or reuse sections in REAPER.
Instructions
Copies an item (e.g. repeat a 4-bar loop, or reuse the chorus). Copies are placed back to back.
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": {
"item_id": "<item_id>"
},
"name": "duplicate_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| item_id | Yes | MIDI item id from create_midi_item/get_track_details, or "selected" | |
| start_bar | No | Where the first copy goes; default: right after the item | |
| start_beat | No | Beat within the bar, 1-based (default 1) |