load_instrument_or_effect
Load instruments or effects onto Ableton Live tracks using URI identifiers to configure audio production setups.
Instructions
Load an instrument or effect onto a track using its URI.
Parameters:
track_index: The index of the track to load the instrument on
uri: The URI of the instrument or effect to load
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| uri | Yes |
Implementation Reference
- MCP_Server/server.py:361-379 (handler)The handler function that registers the 'load_instrument_or_effect' tool and invokes the internal 'load_browser_item' command.
@mcp.tool() def load_instrument_or_effect(ctx: Context, track_index: int, uri: str) -> str: """ Load an instrument or effect onto a track using its URI. Parameters: - track_index: The index of the track to load the instrument on - uri: The URI of the instrument or effect to load """ try: result = _run("load_browser_item", { "track_index": track_index, "item_uri": uri }) if result.get("loaded", False): devices = result.get("new_devices") or result.get("devices_after", []) return f"Loaded '{uri}' on track {track_index}. Devices: {', '.join(devices)}" return f"Failed to load '{uri}'" except Exception as e: