Skip to main content
Glama

crop_clip

Trim audio clips in Ableton Live by removing regions outside loop boundaries or start/end markers. Simplifies clip editing within the Ableton Copilot MCP server for precise audio control.

Instructions

Crops the clip. The region that is cropped depends on whether the clip is looped or not. If looped, the region outside of the loop is removed. If not looped, the region outside the start and end markers is removed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clip_idYes

Implementation Reference

  • Handler function that executes the crop_clip tool: retrieves the clip by ID and invokes its crop() method.
    async cropClip({ clip_id }: { clip_id: string }) { const clip = getClipById(clip_id) await clip.crop() return Result.ok() }
  • @tool decorator registers the 'crop_clip' tool with its description and input schema (clip_id: string).
    @tool({ name: 'crop_clip', description: `Crops the clip. The region that is cropped depends on whether the clip is looped or not. If looped, the region outside of the loop is removed. If not looped, the region outside the start and end markers is removed.`, paramsSchema: { clip_id: z.string(), } })
  • src/main.ts:39-42 (registration)
    ClipTools class containing crop_clip is registered to the MCP server in the tools array passed to startMcp.
    await startMcp({ // Register tool classes, make decorators available 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