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
Pauses a laboratory workbench's replay where it stands. Answers the workbench.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — |
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
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.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — |
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
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.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | |
to_ms | integer | yes | — | The moment to stand at, UTC milliseconds, inside the bench's days. |
undo_deals | boolean | — | false | A 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
Sets how fast a laboratory workbench's replay plays, one of the speeds the Replay widget offers. Answers the workbench.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — | |
speed | integer | yes | — | 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
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.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
back | boolean | — | false | Back rather than forward. |
bench | string | yes | — | |
n | integer | — | — | How many, at most 1000. |
timeframe | string | — | — | A candle step's interval label (M1, H1, …). |
undo_deals | boolean | — | false | A step back over a deal is refused with a door; true takes the door and undoes it. |
unit | string | — | — |
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
Takes a laboratory workbench's clock to the last moment of its days, as the end button does. Answers the workbench.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — |
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
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.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bench | string | yes | — |
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>