Bentrix Docs
HomePricingDashboard

MCP tools: the workspace and its windows

The workspace and its windows: its state read, a workbench selected, the area switched; panels shown, hidden, detached, docked and pinned; the chart windows' layout; the clock; favourites; a window pictured; the workspace exported and imported; an update installed; the application closed — each with the person's leave where the person would be asked.

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

app_quit#

Ask the person to close Bentrix

adminplan: freesince 1.0.0long work: answers a job

Asks the person, on a card in Bentrix's window naming this agent, to close Bentrix; Allow closes it as its Exit does, the workspace written first. Answers a job.

Takes no arguments.

MCP

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

Python

client.workspace
def app_quit(self) -> _Job[Dict[str, Any]]

JavaScript

client.workspace
appQuit(args)

C#

client.Workspace
public Task<Job> AppQuit(CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) AppQuit(ctx context.Context) (*Job, error)

Java

client.workspace
public Job appQuit()

C++

client.workspace
Job app_quit()

Julia

client.workspace
app_quit = ()

R

client$workspace
`app_quit` = function()

Rust

client.workspace()
pub fn app_quit(&self) -> Result<Job<'a>, Error>

area_switch#

Show the laboratory or the real area

labplan: plussince 1.0.0

Switches the window between its two areas, the laboratory and real; each remembers its own last workbench. Answers the area and the workbench now shown.

ArgumentTypeRequiredDefaultWhat it is
area"laboratory" | "real"yes—

MCP

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

Python

client.workspace
def area_switch(self, area: Literal["laboratory", "real"]) -> Dict[str, Any]

JavaScript

client.workspace
areaSwitch(args)

C#

client.Workspace
public Task<JsonNode?> AreaSwitch(string area, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) AreaSwitch(ctx context.Context, args WorkspaceAreaSwitchArgs) (any, error)

Java

client.workspace
public Object areaSwitch(AreaSwitchArgs args)

C++

client.workspace
Json area_switch(const AreaSwitchArgs &args)

Julia

client.workspace
area_switch = (area)

R

client$workspace
`area_switch` = function(area)

Rust

client.workspace()
pub fn area_switch(&self, args: WorkspaceAreaSwitchArgs) -> Result<Value, Error>

capture_get#

Read a window's picture

readplan: freesince 3.2.0reads only

Where a capture stands: waiting, failed with the reason, or taken — the picture as a base64 PNG, its size in pixels, the window's pixels per point, and every thing that window drew in that frame (tag, text, rectangle in points; times pixels_per_point is its place in the picture). The last eight are kept.

ArgumentTypeRequiredDefaultWhat it is
captureintegeryes—The number screen_capture answered.
without_pictureboolean—falseLeave the picture out and answer only its size and the record (to measure, or to save a call's weight).

MCP

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

Python

client.workspace
def capture_get(self, capture: int, *, without_picture: Optional[bool] = None) -> Dict[str, Any]

JavaScript

client.workspace
captureGet(args)

C#

client.Workspace
public Task<JsonNode?> CaptureGet(long capture, bool? withoutPicture = null, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) CaptureGet(ctx context.Context, args WorkspaceCaptureGetArgs) (any, error)

Java

client.workspace
public Object captureGet(CaptureGetArgs args)

C++

client.workspace
Json capture_get(const CaptureGetArgs &args)

Julia

client.workspace
capture_get = (capture; without_picture = nothing)

R

client$workspace
`capture_get` = function(capture, without_picture = NULL)

Rust

client.workspace()
pub fn capture_get(&self, args: WorkspaceCaptureGetArgs) -> Result<Value, Error>

clock_set#

Set the clock

labplan: plussince 1.0.0

Turns the clock's killzones on or off, as its own switch does. Answers the switch.

ArgumentTypeRequiredDefaultWhat it is
killzonesbooleanyes—Whether the clock draws the killzones.

MCP

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

Python

client.workspace
def clock_set(self, killzones: bool) -> Dict[str, Any]

JavaScript

client.workspace
clockSet(args)

C#

client.Workspace
public Task<JsonNode?> ClockSet(bool killzones, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) ClockSet(ctx context.Context, args WorkspaceClockSetArgs) (any, error)

Java

client.workspace
public Object clockSet(ClockSetArgs args)

C++

client.workspace
Json clock_set(const ClockSetArgs &args)

Julia

client.workspace
clock_set = (killzones)

R

client$workspace
`clock_set` = function(killzones)

Rust

client.workspace()
pub fn clock_set(&self, args: WorkspaceClockSetArgs) -> Result<Value, Error>

clock_watch#

Watch a candle on the clock

labplan: plussince 1.0.0

Adds an interval's candle countdown to the clock's watchlist, or takes it off, as the clock's own list does. Answers the watchlist.

ArgumentTypeRequiredDefaultWhat it is
onbooleanyes—
timeframestringyes—The interval whose candle countdown the clock shows, as the menu writes it.

MCP

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

Python

client.workspace
def clock_watch(self, timeframe: str, on: bool) -> Dict[str, Any]

JavaScript

client.workspace
clockWatch(args)

C#

client.Workspace
public Task<JsonNode?> ClockWatch(string timeframe, bool on, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) ClockWatch(ctx context.Context, args WorkspaceClockWatchArgs) (any, error)

Java

client.workspace
public Object clockWatch(ClockWatchArgs args)

C++

client.workspace
Json clock_watch(const ClockWatchArgs &args)

Julia

client.workspace
clock_watch = (timeframe, on)

R

client$workspace
`clock_watch` = function(timeframe, on)

Rust

client.workspace()
pub fn clock_watch(&self, args: WorkspaceClockWatchArgs) -> Result<Value, Error>

dock_set#

Set a dock column

labplan: freesince 1.0.0

Folds or unfolds a column of the dock, sets its extent within its floor and ceiling, or collapses or opens one of its sections, as the column's fold, its edge and a section's caret do. Answers the dock.

ArgumentTypeRequiredDefaultWhat it is
collapsedboolean——
edgestringyes—Right, left, top or bottom.
extentnumber——The column's width (an edge column) or height (a top or bottom one), in points; held within the column's own floor and ceiling.
foldedboolean——The column folded to its strip, or unfolded.
sectioninteger——A section of the column, from 0, and whether it is collapsed to its header.

MCP

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

Python

client.workspace
def dock_set(self, edge: str, *, collapsed: Optional[bool] = None, extent: Optional[float] = None, folded: Optional[bool] = None, section: Optional[int] = None) -> Dict[str, Any]

JavaScript

client.workspace
dockSet(args)

C#

client.Workspace
public Task<JsonNode?> DockSet(string edge, bool? collapsed = null, double? extent = null, bool? folded = null, long? section = null, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) DockSet(ctx context.Context, args WorkspaceDockSetArgs) (any, error)

Java

client.workspace
public Object dockSet(DockSetArgs args)

C++

client.workspace
Json dock_set(const DockSetArgs &args)

Julia

client.workspace
dock_set = (edge; collapsed = nothing, extent = nothing, folded = nothing, section = nothing)

R

client$workspace
`dock_set` = function(edge, collapsed = NULL, extent = NULL, folded = NULL, section = NULL)

Rust

client.workspace()
pub fn dock_set(&self, args: WorkspaceDockSetArgs) -> Result<Value, Error>

favourite_set#

Star a favourite

labplan: plussince 1.0.0

Stars or unstars an interval, an indicator, a chart type, a drawing tool, a cursor or a template, as the stars in their menus do; the bar shows the starred ones. Answers the favourites.

ArgumentTypeRequiredDefaultWhat it is
favouritestringyes—The favourite as it is saved: interval.H4, indicator.rsi, charttype.renko, tool.trend_line, cursor.crosshair — or template.<name>.
starredbooleanyes—

MCP

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

Python

client.workspace
def favourite_set(self, favourite: str, starred: bool) -> Dict[str, Any]

JavaScript

client.workspace
favouriteSet(args)

C#

client.Workspace
public Task<JsonNode?> FavouriteSet(string favourite, bool starred, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) FavouriteSet(ctx context.Context, args WorkspaceFavouriteSetArgs) (any, error)

Java

client.workspace
public Object favouriteSet(FavouriteSetArgs args)

C++

client.workspace
Json favourite_set(const FavouriteSetArgs &args)

Julia

client.workspace
favourite_set = (favourite, starred)

R

client$workspace
`favourite_set` = function(favourite, starred)

Rust

client.workspace()
pub fn favourite_set(&self, args: WorkspaceFavouriteSetArgs) -> Result<Value, Error>

get_state#

Read the application's state

readplan: freesince 1.0.0reads only

Answers the application as the person sees it: the shown area, the selected workbench, every laboratory and real account with its workbenches - each at its own cursor, with its days, tick model, time zone, markets and whether it plays - and, at depth charts, each workbench's chart windows. Every node carries its uri.

ArgumentTypeRequiredDefaultWhat it is
depthstring——

MCP

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

Python

client.workspace
def get_state(self, *, depth: Optional[Literal["benches", "charts"]] = None) -> Dict[str, Any]

JavaScript

client.workspace
getState(args)

C#

client.Workspace
public Task<JsonNode?> GetState(string? depth = null, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) GetState(ctx context.Context, args WorkspaceGetStateArgs) (any, error)

Java

client.workspace
public Object getState(GetStateArgs args)

C++

client.workspace
Json get_state(const GetStateArgs &args)

Julia

client.workspace
get_state = (; depth = nothing)

R

client$workspace
`get_state` = function(depth = NULL)

Rust

client.workspace()
pub fn get_state(&self, args: WorkspaceGetStateArgs) -> Result<Value, Error>

layout_get#

Read the layout

readplan: freesince 1.0.0reads only

Answers a workbench's chart windows - each one's uri, its rectangle as fractions of the chart area [x0, y0, x1, y1], its place in the stack and its state - and the dock's columns.

ArgumentTypeRequiredDefaultWhat it is
benchstring——A workbench's uri; omitted, the one selected.

MCP

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

Python

client.workspace
def layout_get(self, *, bench: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.workspace
layoutGet(args)

C#

client.Workspace
public Task<JsonNode?> LayoutGet(string? bench = null, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) LayoutGet(ctx context.Context, args WorkspaceLayoutGetArgs) (any, error)

Java

client.workspace
public Object layoutGet(LayoutGetArgs args)

C++

client.workspace
Json layout_get(const LayoutGetArgs &args)

Julia

client.workspace
layout_get = (; bench = nothing)

R

client$workspace
`layout_get` = function(bench = NULL)

Rust

client.workspace()
pub fn layout_get(&self, args: WorkspaceLayoutGetArgs) -> Result<Value, Error>

layout_set#

Place a workbench's chart windows

labplan: freesince 1.0.0

Places a workbench's chart windows at the rectangles given as fractions of the chart area, as dragging their edges does; a window placed is no longer minimized or maximized. Answers the layout.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
windowsarray of objectyes—
windows[].chartstringyes—The chart's uri.
windows[].rectarray of numberyes—Its rectangle as fractions of the chart area: [x0, y0, x1, y1], each 0..1, x0 < x1, y0 < y1.

MCP

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

Python

client.workspace
def layout_set(self, bench: str, windows: List[WindowPlace]) -> Dict[str, Any]

JavaScript

client.workspace
layoutSet(args)

C#

client.Workspace
public Task<JsonNode?> LayoutSet(string bench, object windows, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) LayoutSet(ctx context.Context, args WorkspaceLayoutSetArgs) (any, error)

Java

client.workspace
public Object layoutSet(LayoutSetArgs args)

C++

client.workspace
Json layout_set(const LayoutSetArgs &args)

Julia

client.workspace
layout_set = (bench, windows)

R

client$workspace
`layout_set` = function(bench, windows)

Rust

client.workspace()
pub fn layout_set(&self, args: WorkspaceLayoutSetArgs) -> Result<Value, Error>

panel_detach#

Take a panel into its own window

labplan: freesince 1.0.0

Takes a docked panel into a window of its own, as its section header's Detach does: marketwatch, trade, clock, toolbox, charttype, indsettings, help, replay, datawindow, symbolinfo or alerts. Answers the dock.

ArgumentTypeRequiredDefaultWhat it is
panelstringyes—Marketwatch, trade, clock, toolbox, charttype, indsettings, help, replay, datawindow, symbolinfo or alerts.

MCP

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

Python

client.workspace
def panel_detach(self, panel: str) -> Dict[str, Any]

JavaScript

client.workspace
panelDetach(args)

C#

client.Workspace
public Task<JsonNode?> PanelDetach(string panel, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) PanelDetach(ctx context.Context, args WorkspacePanelDetachArgs) (any, error)

Java

client.workspace
public Object panelDetach(PanelDetachArgs args)

C++

client.workspace
Json panel_detach(const PanelDetachArgs &args)

Julia

client.workspace
panel_detach = (panel)

R

client$workspace
`panel_detach` = function(panel)

Rust

client.workspace()
pub fn panel_detach(&self, args: WorkspacePanelDetachArgs) -> Result<Value, Error>

panel_hide#

Hide a panel

labplan: plussince 1.0.0

Hides Market Watch, the Alerts or Strategies panel, the selected workbench's Toolbox or the data window, as their toggles do. Answers whether it is shown.

ArgumentTypeRequiredDefaultWhat it is
panel"market_watch" | "alerts" | "strategies" | "toolbox" | "data_window"yes—

MCP

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

Python

client.workspace
def panel_hide(self, panel: Literal["market_watch", "alerts", "strategies", "toolbox", "data_window"]) -> Dict[str, Any]

JavaScript

client.workspace
panelHide(args)

C#

client.Workspace
public Task<JsonNode?> PanelHide(string panel, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) PanelHide(ctx context.Context, args WorkspacePanelHideArgs) (any, error)

Java

client.workspace
public Object panelHide(PanelHideArgs args)

C++

client.workspace
Json panel_hide(const PanelHideArgs &args)

Julia

client.workspace
panel_hide = (panel)

R

client$workspace
`panel_hide` = function(panel)

Rust

client.workspace()
pub fn panel_hide(&self, args: WorkspacePanelHideArgs) -> Result<Value, Error>

panel_show#

Show a panel

labplan: plussince 1.0.0

Shows Market Watch, the Alerts or Strategies panel, the selected workbench's Toolbox or the data window, as their toggles do. Answers whether it is shown.

ArgumentTypeRequiredDefaultWhat it is
panel"market_watch" | "alerts" | "strategies" | "toolbox" | "data_window"yes—

MCP

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

Python

client.workspace
def panel_show(self, panel: Literal["market_watch", "alerts", "strategies", "toolbox", "data_window"]) -> Dict[str, Any]

JavaScript

client.workspace
panelShow(args)

C#

client.Workspace
public Task<JsonNode?> PanelShow(string panel, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) PanelShow(ctx context.Context, args WorkspacePanelShowArgs) (any, error)

Java

client.workspace
public Object panelShow(PanelShowArgs args)

C++

client.workspace
Json panel_show(const PanelShowArgs &args)

Julia

client.workspace
panel_show = (panel)

R

client$workspace
`panel_show` = function(panel)

Rust

client.workspace()
pub fn panel_show(&self, args: WorkspacePanelShowArgs) -> Result<Value, Error>

screen_capture#

Take a picture of a window

readplan: freesince 3.2.0reads only

Asks the main window, or the window that draws a thing whose tag starts with holding, for a picture of its next frame. Nothing moves the pointer and no window is brought forward. Answers the capture's number; capture_get reads the picture. Refused while a real account's workbench is shown, unless the person gave this agent real.

ArgumentTypeRequiredDefaultWhat it is
holdingstring——The window whose picture is taken: the one that draws a thing whose tag starts with this (indsettings. for an indicator's settings card, trade. for the trade panel), as the screen page names its rows. The main window when omitted.

MCP

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

Python

client.workspace
def screen_capture(self, *, holding: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.workspace
screenCapture(args)

C#

client.Workspace
public Task<JsonNode?> ScreenCapture(string? holding = null, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) ScreenCapture(ctx context.Context, args WorkspaceScreenCaptureArgs) (any, error)

Java

client.workspace
public Object screenCapture(ScreenCaptureArgs args)

C++

client.workspace
Json screen_capture(const ScreenCaptureArgs &args)

Julia

client.workspace
screen_capture = (; holding = nothing)

R

client$workspace
`screen_capture` = function(holding = NULL)

Rust

client.workspace()
pub fn screen_capture(&self, args: WorkspaceScreenCaptureArgs) -> Result<Value, Error>

select_bench#

Show a workbench

labplan: plussince 1.0.0

Selects a workbench, which moves the person's own selection: the window then shows it. A workbench left behind while playing keeps playing or pauses, as leave says. Answers the workbench now shown.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench's uri, as get_state gives it.
leavestring——What becomes of the workbench left behind, if it was playing.

MCP

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

Python

client.workspace
def select_bench(self, bench: str, *, leave: Optional[Literal["keep", "pause"]] = None) -> Dict[str, Any]

JavaScript

client.workspace
selectBench(args)

C#

client.Workspace
public Task<JsonNode?> SelectBench(string bench, string? leave = null, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) SelectBench(ctx context.Context, args WorkspaceSelectBenchArgs) (any, error)

Java

client.workspace
public Object selectBench(SelectBenchArgs args)

C++

client.workspace
Json select_bench(const SelectBenchArgs &args)

Julia

client.workspace
select_bench = (bench; leave = nothing)

R

client$workspace
`select_bench` = function(bench, leave = NULL)

Rust

client.workspace()
pub fn select_bench(&self, args: WorkspaceSelectBenchArgs) -> Result<Value, Error>

update_install_now#

Ask the person to install the staged release

adminplan: freesince 1.0.0long work: answers a job

When a release is downloaded and staged, asks the person on a card in Bentrix's window to restart now and install it, as the ready line's Restart now does. Answers a job; refused when nothing is staged.

Takes no arguments.

MCP

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

Python

client.workspace
def update_install_now(self) -> _Job[Dict[str, Any]]

JavaScript

client.workspace
updateInstallNow(args)

C#

client.Workspace
public Task<Job> UpdateInstallNow(CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) UpdateInstallNow(ctx context.Context) (*Job, error)

Java

client.workspace
public Job updateInstallNow()

C++

client.workspace
Job update_install_now()

Julia

client.workspace
update_install_now = ()

R

client$workspace
`update_install_now` = function()

Rust

client.workspace()
pub fn update_install_now(&self) -> Result<Job<'a>, Error>

window_pin#

Pin a window on top

labplan: freesince 1.0.0

Puts a window's pin in or out, as the pin on its bar does: a window with its pin in stands over Bentrix's other windows. Window is a panel's name or a chart's uri. Answers whether it is pinned.

ArgumentTypeRequiredDefaultWhat it is
pinnedbooleanyes—The pin in (the window stands over Bentrix's others) or out.
windowstringyes—A panel's window (marketwatch, trade, clock, toolbox, charttype, indsettings, help, replay, datawindow, symbolinfo, alerts, downloads, strategies) or a chart's uri.

MCP

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

Python

client.workspace
def window_pin(self, window: str, pinned: bool) -> Dict[str, Any]

JavaScript

client.workspace
windowPin(args)

C#

client.Workspace
public Task<JsonNode?> WindowPin(string window, bool pinned, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) WindowPin(ctx context.Context, args WorkspaceWindowPinArgs) (any, error)

Java

client.workspace
public Object windowPin(WindowPinArgs args)

C++

client.workspace
Json window_pin(const WindowPinArgs &args)

Julia

client.workspace
window_pin = (window, pinned)

R

client$workspace
`window_pin` = function(window, pinned)

Rust

client.workspace()
pub fn window_pin(&self, args: WorkspaceWindowPinArgs) -> Result<Value, Error>

workspace_export#

Export charts, templates and alerts

readplan: freesince 1.14.0reads only

Answers the document the File menu's Export writes: the workbench's charts, each with its market, interval and whole setup (type, studies, drawings), every saved indicator template, and every alert's market and specification - one JSON object (format bentrix-export) a person keeps as a file and workspace_import reads back.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench whose charts are exported, as a bentrix://bench/... Uri.

MCP

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

Python

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

JavaScript

client.workspace
export(args)

C#

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

Go

client.Workspace
func (a *WorkspaceAPI) Export(ctx context.Context, args WorkspaceExportArgs) (any, error)

Java

client.workspace
public Object export(ExportArgs args)

C++

client.workspace
Json export_(const ExportArgs &args)

Julia

client.workspace
export_ = (bench)

R

client$workspace
`export` = function(bench)

Rust

client.workspace()
pub fn export(&self, args: WorkspaceExportArgs) -> Result<Value, Error>

workspace_import#

Import charts, templates and alerts

labplan: freesince 1.14.0

Reads a bentrix-export document onto a workbench as the File menu's Import does: each template saved (under name (imported) when the name is taken, never over one), each chart of a market the workbench holds opened as a new window with its setup, each alert of such a market made anew on it. Answers a line each, done or not and why - a market the workbench does not hold, a part that did not read. A document of a later form is refused.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench the charts open on and the alerts are made on, as a bentrix://bench/... Uri.
documentanyyes—A document workspace_export answered, or a file the File menu's Export wrote.

MCP

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

Python

client.workspace
def import_(self, bench: str, document: Any) -> Dict[str, Any]

JavaScript

client.workspace
import(args)

C#

client.Workspace
public Task<JsonNode?> Import(string bench, object document, CancellationToken ct = default)

Go

client.Workspace
func (a *WorkspaceAPI) Import(ctx context.Context, args WorkspaceImportArgs) (any, error)

Java

client.workspace
public Object import_(ImportArgs args)

C++

client.workspace
Json import(const ImportArgs &args)

Julia

client.workspace
import_ = (bench, document)

R

client$workspace
`import` = function(bench, document)

Rust

client.workspace()
pub fn import(&self, args: WorkspaceImportArgs) -> Result<Value, Error>

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