remove_send
Remove a send from a track by specifying the source track index and send index. Streamline your REAPER mix by eliminating unwanted routing connections.
Instructions
Remove a send from a track by its index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_track_index | Yes | ||
| send_index | Yes |
Implementation Reference
- src/reaper_mcp/mixing_tools.py:111-119 (handler)The actual handler function that removes a send from a track by calling RPR.RemoveTrackSend. It gets the project, accesses the track by index, removes the send at the given send_index, and returns success/error.
def remove_send(source_track_index: int, send_index: int) -> dict: """Remove a send from a track by its index.""" try: project = get_project() track = project.tracks[source_track_index] RPR.RemoveTrackSend(track.id, 0, send_index) return {"success": True, "source_track_index": source_track_index, "send_index": send_index} except Exception as e: return {"success": False, "error": str(e)} - src/reaper_mcp/mixing_tools.py:110-119 (registration)The @mcp.tool() decorator registers the remove_send function as an MCP tool. The registration is triggered by server.py importing mixing_tools.register_tools and calling it with the mcp instance.
@mcp.tool() def remove_send(source_track_index: int, send_index: int) -> dict: """Remove a send from a track by its index.""" try: project = get_project() track = project.tracks[source_track_index] RPR.RemoveTrackSend(track.id, 0, send_index) return {"success": True, "source_track_index": source_track_index, "send_index": send_index} except Exception as e: return {"success": False, "error": str(e)} - src/reaper_mcp/mixing_tools.py:6-7 (helper)The get_project helper is imported from reaper_mcp.connection and used within remove_send to obtain the current REAPER project.
from reaper_mcp.connection import get_project - Input parameters are defined via type hints: source_track_index (int) and send_index (int). The return type is dict.
def remove_send(source_track_index: int, send_index: int) -> dict: