duplicate_track
Duplicate a track in REAPER projects by inserting an exact copy immediately after the original track. Use this tool to quickly replicate track configurations, effects, and settings for parallel processing or layered arrangements.
Instructions
Duplicate a track, inserting the copy immediately after the original.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes |
Implementation Reference
- src/reaper_mcp/server.py:214-220 (handler)The tool handler for "duplicate_track" defined in the MCP server.
@mcp.tool() def duplicate_track(track_index: int) -> dict[str, Any]: """Duplicate a track, inserting the copy immediately after the original.""" try: return _wrap(adapter.duplicate_track(track_index=track_index)) except Exception as exc: return _err(exc) - src/reaper_mcp/server.py:214-214 (registration)Registration of the "duplicate_track" tool using the FastMCP decorator.
@mcp.tool() - The adapter method that forwards the "duplicate_track" call to the BridgeClient.
def duplicate_track(self, track_index: int) -> dict[str, Any]: return self._client.call("duplicate_track", track_index=track_index)