item_set_length
Set a specific REAPER item's length in seconds using its index and duration. For multiple items, prefer items_apply for batch adjustments.
Instructions
Set item length. Prefer items_apply for multiple.
Args: item_index: Item index. length: Length in seconds.
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_index": "<item_index>",
"length": "<length>"
},
"name": "item_set_length"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | Yes | ||
| item_index | Yes |