move_media_item
Move a media item to a new timeline position in seconds within REAPER projects by specifying track index, item index, and position.
Instructions
Move a media item to a new timeline position (seconds).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| item_index | Yes | ||
| position | Yes |
Implementation Reference
- src/reaper_mcp/server.py:155-169 (handler)Registration and MCP tool handler for 'move_media_item'. It wraps the adapter's call.
@mcp.tool() def move_media_item( track_index: int, item_index: int, position: float, ) -> dict[str, Any]: """Move a media item to a new timeline position (seconds).""" try: return _wrap( adapter.move_media_item( track_index=track_index, item_index=item_index, position=position ) ) except Exception as exc: return _err(exc) - ReaperAdapter method that facilitates the bridge call to move a media item.
def move_media_item( self, track_index: int, item_index: int, position: float ) -> dict[str, Any]: return self._client.call( "move_media_item", track_index=track_index, item_index=item_index, position=position, )