Skip to main content
Glama

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
NameRequiredDescriptionDefault
track_indexYes
item_indexYes
positionYes

Implementation Reference

  • 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,
        )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielkinahan/ReaMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server