delete_clip
Remove audio or MIDI clips from Ableton Live tracks by specifying track and clip indices to clean up arrangements and manage session content.
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_index": "<clip_index>"
},
"name": "delete_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| clip_index | Yes |
Implementation Reference
- MCP_Server/server.py:619-627 (handler)The MCP tool handler for 'delete_clip'. It connects to the Ableton remote script and sends a 'delete_clip' command with track_index and clip_index parameters, returning success or error message.
@mcp.tool() def delete_clip(ctx: Context, track_index: int, clip_index: int) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("delete_clip", {"track_index": track_index, "clip_index": clip_index}) return f"Deleted clip '{result.get('clip_name')}' from track '{result.get('track_name')}'" except Exception as e: logger.error(f"Error deleting clip: {str(e)}") return f"Error deleting clip: {str(e)}"