delete_marker
Remove markers or regions from REAPER projects using their index position to manage project structure and navigation points.
Instructions
Delete a marker or region by its 0-based enumeration index (from list_markers).
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": {
"enum_index": "<enum_index>"
},
"name": "delete_marker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enum_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/reaper_mcp/server.py:823-831 (handler)MCP tool registration and handler for 'delete_marker'.
@mcp.tool() def delete_marker(enum_index: int) -> dict[str, Any]: """ Delete a marker or region by its 0-based enumeration index (from list_markers). """ try: return _wrap(adapter.delete_marker(enum_index=enum_index)) except Exception as exc: return _err(exc) - Adapter method that translates the tool call to the underlying BridgeClient.
def delete_marker(self, enum_index: int) -> dict[str, Any]: return self._client.call("delete_marker", enum_index=enum_index)