delete_scene
Remove a specific scene from your Ableton Live session to clean up arrangements and manage your project structure. Specify the scene index to delete it.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_index | Yes |
Implementation Reference
- MCP_Server/server.py:651-659 (handler)MCP tool handler function for 'delete_scene'. It uses the AbletonConnection to send a 'delete_scene' command with the scene_index parameter to the Ableton remote script via socket.@mcp.tool() def delete_scene(ctx: Context, scene_index: int) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("delete_scene", {"scene_index": scene_index}) return f"Deleted scene '{result.get('name')}' at index {result.get('index')}" except Exception as e: logger.error(f"Error deleting scene: {str(e)}") return f"Error deleting scene: {str(e)}"
- MCP_Server/server.py:651-651 (registration)The @mcp.tool() decorator registers the delete_scene function as an MCP tool, inferring schema from the function signature (ctx: Context, scene_index: int) -> str.@mcp.tool()