write_clip
Writes MIDI notes into an Ableton Live track section, replacing or adding to existing notes; replacing an existing part requires confirmation.
Instructions
Write a part with notes on a midi track, in the given section. length_beats: 16 is 4 bars of 4/4.
mode replace writes the part fresh; if the slot already holds a part it is replaced, which needs the user's yes
and confirmed=true. mode add keeps the existing notes and adds these. Times and durations are in beats.
For a drum kit, take pitches from drum_pads in get_set_state. The track needs a sound or it plays silent.
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": "<track>",
"scene": "<scene>",
"notes": "<notes>"
},
"name": "write_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | replace | |
| name | No | ||
| notes | Yes | ||
| scene | Yes | ||
| track | Yes | ||
| confirmed | No | ||
| length_beats | No |