Skip to main content
Glama

copy_clip

Copies audio or MIDI clips between tracks in Ableton Live sessions to rearrange musical elements or duplicate patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_trackYes
source_clipYes
target_trackYes
target_clipYes

Implementation Reference

  • The main handler function for the 'copy_clip' MCP tool. Decorated with @mcp.tool() for automatic registration and schema inference from type hints. Sends a 'copy_clip' command to the Ableton connection with the provided track and clip indices, and returns a descriptive success or error message.
    @mcp.tool() def copy_clip(ctx: Context, source_track: int, source_clip: int, target_track: int, target_clip: int) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("copy_clip", { "source_track": source_track, "source_clip": source_clip, "target_track": target_track, "target_clip": target_clip }) return f"Copied clip '{result.get('clip_name')}' from track {source_track}, slot {source_clip} to track {target_track}, slot {target_clip}" except Exception as e: logger.error(f"Error copying clip: {str(e)}") return f"Error copying clip: {str(e)}"
  • The @mcp.tool() decorator registers the copy_clip function as an MCP tool, using its signature for input schema.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Milesy1/MCP-Ableton-API'

If you have feedback or need assistance with the MCP directory API, please join our Discord server