create_midi_clip
Create an empty MIDI clip in a specified track and clip slot, with configurable length and optional name. Use when you need a new clip in a known slot.
Instructions
Create an empty MIDI clip in a session clip slot. Use when the target MIDI track and clip slot are known and a new clip is needed. NOT idempotent for occupied slots; wrapped in an undo step and verified by returned clip length/name.
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>",
"clip_slot_index": "<clip_slot_index>",
"length_beats": "<length_beats>"
},
"name": "create_midi_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| clip_slot_index | Yes | ||
| length_beats | Yes | ||
| name | No |