create_track
Add a new audio track in REAPER DAW for music composition and production workflows.
Instructions
Create a new track.
Args:
name: Name for the new track
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New Track |
Implementation Reference
- scythe_mcp/server/main.py:119-130 (handler)MCP tool handler for 'create_track'. This is the primary entry point for the tool, decorated with @mcp.tool() for registration and execution. It invokes the ReaperBridge to perform the track creation.@mcp.tool() def create_track(ctx: Context, name: str = "New Track") -> str: """ Create a new track. Args: name: Name for the new track """ bridge = get_bridge() result = bridge.create_track(name) return result.get("message", "Track created")
- Core implementation logic in ReaperBridge.create_track. Triggers REAPER action ID 40001 to insert a new track, then writes a file-based command to name the newly selected track.def create_track(self, name: str = "New Track") -> Dict[str, Any]: """Create a new track via action then file command for naming.""" # First trigger insert track action self.trigger_action(40001) # Then send naming command via file self._write_command("name_selected_track", {"name": name}) return {"success": True, "message": f"Created track: {name}"}
- scythe_mcp/server/main.py:119-130 (registration)The @mcp.tool() decorator registers 'create_track' as an MCP tool, with input schema inferred from the function signature and docstring.@mcp.tool() def create_track(ctx: Context, name: str = "New Track") -> str: """ Create a new track. Args: name: Name for the new track """ bridge = get_bridge() result = bridge.create_track(name) return result.get("message", "Track created")