set_input_monitoring
Control input monitoring on REAPER tracks to enable, disable, or set conditional monitoring based on playback state.
Instructions
Set input monitoring mode for a track.
mode: 0 = off, 1 = on, 2 = not when playing
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"track_index": "<track_index>",
"mode": "<mode>"
},
"name": "set_input_monitoring"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| mode | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/reaper_mcp/server.py:967-977 (handler)The MCP tool registration and handler entry point for set_input_monitoring.
@mcp.tool() def set_input_monitoring(track_index: int, mode: int) -> dict[str, Any]: """ Set input monitoring mode for a track. - mode: 0 = off, 1 = on, 2 = not when playing """ try: return _wrap( adapter.set_input_monitoring(track_index=track_index, mode=mode) ) except Exception as exc: - src/reaper_mcp/reaper_adapter.py:520-528 (handler)The adapter method that calls the underlying REAPER client for set_input_monitoring.
def set_input_monitoring( self, track_index: int, mode: int ) -> dict[str, Any]: """mode: 0=off, 1=on, 2=not when playing""" return self._client.call( "set_input_monitoring", track_index=track_index, mode=mode, )