stop_clip
Stop playback of a specific clip in Ableton Live by specifying track and clip indices, allowing precise control over audio or MIDI arrangement elements during music production.
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": "stop_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| clip_index | Yes |
Implementation Reference
- MCP_Server/server.py:381-389 (handler)The main handler function for the 'stop_clip' tool. It retrieves the Ableton connection and sends a 'stop_clip' command with the provided track and clip indices, handling errors appropriately.
@mcp.tool() def stop_clip(ctx: Context, track_index: int, clip_index: int) -> str: try: ableton = get_ableton_connection() ableton.send_command("stop_clip", {"track_index": track_index, "clip_index": clip_index}) return f"Stopped clip at track {track_index}, slot {clip_index}" except Exception as e: logger.error(f"Error stopping clip: {str(e)}") return f"Error stopping clip: {str(e)}"