get_track
Retrieve detailed information about a specific track in a REAPER project by its index number.
Instructions
Get detailed info for a single track by 0-based index.
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>"
},
"name": "get_track"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/reaper_mcp/server.py:83-89 (handler)The MCP tool registration and handler entry point for 'get_track'.
@mcp.tool() def get_track(track_index: int) -> dict[str, Any]: """Get detailed info for a single track by 0-based index.""" try: return _wrap(adapter.get_track(track_index=track_index)) except Exception as exc: return _err(exc) - The adapter method that delegates the call to the underlying Reaper client.
def get_track(self, track_index: int) -> dict[str, Any]: return self._client.call("get_track", track_index=track_index)