item_create_midi
Create an empty MIDI item on a specific track by setting its start time and length. Returns the global index of the newly created item for further editing.
Instructions
Create an empty MIDI item on a track. Returns the item's global index.
Args: track_index: 0-based track index. position: Item start time in seconds (>= 0). length: Item length in seconds (> 0).
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": {
"track_index": "<track_index>"
},
"name": "item_create_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | ||
| position | No | ||
| track_index | Yes |