Skip to main content
Glama

add_marker

Add markers or regions to REAPER projects to mark specific time positions or define sections for audio editing and organization.

Instructions

Add a marker or region to the project.

  • position: time in seconds

  • is_region: True to create a region; also requires region_end

  • region_end: end time in seconds (only for regions)

  • color: REAPER color integer (0 = default)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
positionYes
nameNo
is_regionNo
region_endNo
colorNo

Implementation Reference

  • The implementation of the add_marker logic in the adapter class, which calls the bridge client.
    def add_marker(
        self,
        position: float,
        name: str = "",
        is_region: bool = False,
        region_end: float | None = None,
        color: int = 0,
    ) -> dict[str, Any]:
        return self._client.call(
            "add_marker",
            position=position,
            name=name,
            is_region=is_region,
            region_end=region_end,
            color=color,
        )
  • The MCP tool registration and wrapper for the add_marker tool.
    def add_marker(
        position: float,
        name: str = "",
        is_region: bool = False,
        region_end: float | None = None,
        color: int = 0,
    ) -> dict[str, Any]:
        """
        Add a marker or region to the project.
        - position: time in seconds
        - is_region: True to create a region; also requires region_end
        - region_end: end time in seconds (only for regions)
        - color: REAPER color integer (0 = default)
        """
        try:
            return _wrap(
                adapter.add_marker(
                    position=position,
                    name=name,
                    is_region=is_region,
                    region_end=region_end,
                    color=color,
                )
            )
        except Exception as exc:
            return _err(exc)

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