Skip to main content
Glama

duplicate_clip_to_track

Duplicate a clip to a specified track at a specific time in Ableton Live using Ableton Copilot MCP, enabling precise clip management and arrangement control.

Instructions

duplicate clip to track

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clip_idYes
timeYes
track_idYes

Implementation Reference

  • The main handler function that executes the tool logic: retrieves the track by ID, duplicates the clip to the arrangement at the specified time, and returns the clip data.
    async duplicateClipToTrack({ clip_id, track_id, time }: { clip_id: string, track_id: string, time: number }) {
        const track = getTrackById(track_id)
        const clip = await track.duplicateClipToArrangement(clip_id, time)
        return Result.data(clip.raw)
    }
  • Tool registration decorator defining the name, description, and input schema (paramsSchema).
    @tool({
        name: 'duplicate_clip_to_track',
        description: 'duplicate clip to track and return the duplicated clip information',
        paramsSchema: {
            clip_id: z.string(),
            track_id: z.string(),
            time: z.number(),
        }
    })
  • Zod schema for input parameters: clip_id, track_id, and time.
        paramsSchema: {
            clip_id: z.string(),
            track_id: z.string(),
            time: z.number(),
        }
    })
  • src/main.ts:41-41 (registration)
    Registers the TrackTools class (containing duplicate_clip_to_track) with the MCP server.
    tools: [BrowserTools, ClipTools, DeviceTools, HistoryTools, SongTools, TrackTools, ExtraTools, ApplicationTools]

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/xiaolaa2/ableton-copilot-mcp'

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