load_fx_preset
Load a saved preset by name for an FX plugin on a specified track and FX index in REAPER.
Instructions
Load a saved preset by name for an FX plugin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| fx_index | Yes | ||
| preset_name | Yes |
Implementation Reference
- src/reaper_mcp/fx_tools.py:139-155 (handler)The 'load_fx_preset' tool function is defined here as an MCP tool (decorated with @mcp.tool()). It accepts track_index, fx_index, and preset_name, finds the track and FX, and sets fx.preset_name to load the preset.
@mcp.tool() def load_fx_preset(track_index: int, fx_index: int, preset_name: str) -> dict: """Load a saved preset by name for an FX plugin.""" try: project = get_project() track = project.tracks[track_index] fx = track.fxs[fx_index] fx.preset_name = preset_name return { "success": True, "track_index": track_index, "fx_index": fx_index, "fx_name": fx.name, "preset": fx.preset_name, } except Exception as e: return {"success": False, "error": str(e)} - src/reaper_mcp/fx_tools.py:11-11 (schema)The function signature shows the input schema: track_index: int, fx_index: int, preset_name: str. The return type is dict.
def register_tools(mcp): - src/reaper_mcp/server.py:13-13 (registration)The fx_tools module is imported and its register_tools function is called at line 23, which registers 'load_fx_preset' (among others) with the MCP server.
from reaper_mcp.fx_tools import register_tools as _reg_fx