set_clip_name
Rename clips in Ableton Live by specifying track and clip positions with a new name for better organization and workflow management.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_index | Yes | ||
| name | Yes | ||
| track_index | Yes |
Implementation Reference
- MCP_Server/server.py:326-339 (handler)The main handler function for the 'set_clip_name' MCP tool. It connects to Ableton via the global connection, sends a 'set_clip_name' command with the provided track_index, clip_index, and name parameters, and returns a success or error message.@mcp.tool() def set_clip_name(ctx: Context, track_index: int, clip_index: int, name: str) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("set_clip_name", { "track_index": track_index, "clip_index": clip_index, "name": name }) return f"Renamed clip at track {track_index}, slot {clip_index} to '{name}'" except Exception as e: logger.error(f"Error setting clip name: {str(e)}") return f"Error setting clip name: {str(e)}"