get_track_items
Lists media items on a specified track, showing position, length, and take details for project organization in REAPER.
Instructions
List all media items on a track with their position, length, and take info.
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_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/reaper_mcp/server.py:346-351 (handler)MCP tool registration and handler for get_track_items.
def get_track_items(track_index: int) -> dict[str, Any]: """List all media items on a track with their position, length, and take info.""" try: return _wrap(adapter.get_track_items(track_index=track_index)) except Exception as exc: return _err(exc) - Adapter method in ReaperAdapter class that dispatches the call to the BridgeClient.
def get_track_items(self, track_index: int) -> dict[str, Any]: return self._client.call("get_track_items", track_index=track_index)