Bentrix Docs
HomePricingDashboard

MCP tools: replay

A laboratory workbench's clock: play, pause, step by ticks or candles, seek to a moment, go to its start or end, set the speed. A step back over a deal stops and offers the door; undo_deals takes it.

Reached from a connected client as client.replay in Python, client.replay in JavaScript, client.replay() in Rust — each tool below shows its call in every language.

replay_pause#

Pause a workbench's replay

labplan: plussince 1.0.0idempotent

Pauses a laboratory workbench's replay where it stands. Answers the workbench.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replay_pause",
    "arguments": {
      "bench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.replay
def pause(self, bench: str) -> Dict[str, Any]

JavaScript

client.replay
pause(args)

C#

client.Replay
public Task<JsonNode?> Pause(string bench, CancellationToken ct = default)

Go

client.Replay
func (a *ReplayAPI) Pause(ctx context.Context, args ReplayPauseArgs) (any, error)

Java

client.replay
public Object pause(PauseArgs args)

C++

client.replay
Json pause(const PauseArgs &args)

Julia

client.replay
pause = (bench)

R

client$replay
`pause` = function(bench)

Rust

client.replay()
pub fn pause(&self, args: ReplayPauseArgs) -> Result<Value, Error>

replay_play#

Play a workbench's replay

labplan: plussince 1.0.0idempotent

Plays a laboratory workbench's replay at its speed, in the background if it is not the one shown. Answers the workbench; a refusal (a restart over an open book) is said in refusal and door.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replay_play",
    "arguments": {
      "bench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.replay
def play(self, bench: str) -> Dict[str, Any]

JavaScript

client.replay
play(args)

C#

client.Replay
public Task<JsonNode?> Play(string bench, CancellationToken ct = default)

Go

client.Replay
func (a *ReplayAPI) Play(ctx context.Context, args ReplayPlayArgs) (any, error)

Java

client.replay
public Object play(PlayArgs args)

C++

client.replay
Json play(const PlayArgs &args)

Julia

client.replay
play = (bench)

R

client$replay
`play` = function(bench)

Rust

client.replay()
pub fn play(&self, args: ReplayPlayArgs) -> Result<Value, Error>

replay_seek#

Stand a workbench at a moment

labplan: plussince 1.0.0destructive

Stands a laboratory workbench's clock at a moment inside its days. Back over a deal it stops with refusal and door; undo_deals true undoes what lay after. Answers the workbench at its new moment.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
to_msintegeryes—The moment to stand at, UTC milliseconds, inside the bench's days.
undo_dealsboolean—falseA move back over a deal is refused with a door; true takes the door and undoes it.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replay_seek",
    "arguments": {
      "bench": "…",
      "to_ms": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.replay
def seek(self, bench: str, to_ms: int, *, undo_deals: Optional[bool] = None) -> Dict[str, Any]

JavaScript

client.replay
seek(args)

C#

client.Replay
public Task<JsonNode?> Seek(string bench, long toMs, bool? undoDeals = null, CancellationToken ct = default)

Go

client.Replay
func (a *ReplayAPI) Seek(ctx context.Context, args ReplaySeekArgs) (any, error)

Java

client.replay
public Object seek(SeekArgs args)

C++

client.replay
Json seek(const SeekArgs &args)

Julia

client.replay
seek = (bench, to_ms; undo_deals = nothing)

R

client$replay
`seek` = function(bench, to_ms, undo_deals = NULL)

Rust

client.replay()
pub fn seek(&self, args: ReplaySeekArgs) -> Result<Value, Error>

replay_set_speed#

Set a workbench's replay speed

labplan: plussince 1.0.0idempotent

Sets how fast a laboratory workbench's replay plays, one of the speeds the Replay widget offers. Answers the workbench.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
speedintegeryes—Times real time: 1, 60, 720, 1800 or 3600 — the speeds the Replay widget offers.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replay_set_speed",
    "arguments": {
      "bench": "…",
      "speed": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.replay
def set_speed(self, bench: str, speed: int) -> Dict[str, Any]

JavaScript

client.replay
setSpeed(args)

C#

client.Replay
public Task<JsonNode?> SetSpeed(string bench, long speed, CancellationToken ct = default)

Go

client.Replay
func (a *ReplayAPI) SetSpeed(ctx context.Context, args ReplaySetSpeedArgs) (any, error)

Java

client.replay
public Object setSpeed(SetSpeedArgs args)

C++

client.replay
Json set_speed(const SetSpeedArgs &args)

Julia

client.replay
set_speed = (bench, speed)

R

client$replay
`set_speed` = function(bench, speed)

Rust

client.replay()
pub fn set_speed(&self, args: ReplaySetSpeedArgs) -> Result<Value, Error>

replay_step#

Step a workbench's replay

labplan: plussince 1.0.0destructive

Moves a laboratory workbench's clock by n ticks, n candles or n elements of its chart built by price or activity (bricks, lines, columns, bars), forward or back, as the Step and Back buttons, the candle keys and the clock line do. A step back over a deal stops with refusal and door; undo_deals true takes the door. Answers the workbench at its new moment.

ArgumentTypeRequiredDefaultWhat it is
backboolean—falseBack rather than forward.
benchstringyes—
ninteger——How many, at most 1000.
timeframestring——A candle step's interval label (M1, H1, …).
undo_dealsboolean—falseA step back over a deal is refused with a door; true takes the door and undoes it.
unitstring——

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replay_step",
    "arguments": {
      "bench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.replay
def step(self, bench: str, *, back: Optional[bool] = None, n: Optional[int] = None, timeframe: Optional[str] = None, undo_deals: Optional[bool] = None, unit: Optional[Literal["tick", "candle", "element"]] = None) -> Dict[str, Any]

JavaScript

client.replay
step(args)

C#

client.Replay
public Task<JsonNode?> Step(string bench, bool? back = null, long? n = null, string? timeframe = null, bool? undoDeals = null, string? unit = null, CancellationToken ct = default)

Go

client.Replay
func (a *ReplayAPI) Step(ctx context.Context, args ReplayStepArgs) (any, error)

Java

client.replay
public Object step(StepArgs args)

C++

client.replay
Json step(const StepArgs &args)

Julia

client.replay
step = (bench; back = nothing, n = nothing, timeframe = nothing, undo_deals = nothing, unit = nothing)

R

client$replay
`step` = function(bench, back = NULL, n = NULL, timeframe = NULL, undo_deals = NULL, unit = NULL)

Rust

client.replay()
pub fn step(&self, args: ReplayStepArgs) -> Result<Value, Error>

replay_to_end#

Take a workbench to its end

labplan: plussince 1.0.0

Takes a laboratory workbench's clock to the last moment of its days, as the end button does. Answers the workbench.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replay_to_end",
    "arguments": {
      "bench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.replay
def to_end(self, bench: str) -> Dict[str, Any]

JavaScript

client.replay
toEnd(args)

C#

client.Replay
public Task<JsonNode?> ToEnd(string bench, CancellationToken ct = default)

Go

client.Replay
func (a *ReplayAPI) ToEnd(ctx context.Context, args ReplayToEndArgs) (any, error)

Java

client.replay
public Object toEnd(ToEndArgs args)

C++

client.replay
Json to_end(const ToEndArgs &args)

Julia

client.replay
to_end = (bench)

R

client$replay
`to_end` = function(bench)

Rust

client.replay()
pub fn to_end(&self, args: ReplayToEndArgs) -> Result<Value, Error>

replay_to_start#

Take a workbench back to its start

labplan: plussince 1.0.0destructive

Takes a laboratory workbench's clock back to the first moment of its days, as the start button does. Over deals it stops with refusal and door. Answers the workbench.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "replay_to_start",
    "arguments": {
      "bench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.replay
def to_start(self, bench: str) -> Dict[str, Any]

JavaScript

client.replay
toStart(args)

C#

client.Replay
public Task<JsonNode?> ToStart(string bench, CancellationToken ct = default)

Go

client.Replay
func (a *ReplayAPI) ToStart(ctx context.Context, args ReplayToStartArgs) (any, error)

Java

client.replay
public Object toStart(ToStartArgs args)

C++

client.replay
Json to_start(const ToStartArgs &args)

Julia

client.replay
to_start = (bench)

R

client$replay
`to_start` = function(bench)

Rust

client.replay()
pub fn to_start(&self, args: ReplayToStartArgs) -> Result<Value, Error>

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed