Indicators and Assay scripts: the person's files read, checked and installed (a replaced file waits for the person's tick again), the language service — completion, hover, signature, definition, references, rename, symbols, format, folds, vocabulary, conversion between versions, the run inspected — the script history, and the Assay IDE's own window.
Reached from a connected client as client.indicator in Python, client.indicator in JavaScript, client.indicator() in Rust — each tool below shows its call in every language.
ide_board#
Read or arrange the Assay IDE's board
The board of the script in front: where each statement's cluster stands, laid out by hand, kept beside the script in the indicators folder and never in its text. Read answers it; place moves one statement's cluster; tidy lays them all again in the text's order; forget deletes the arrangement. A view act, as a person's drag of a cluster's body is: no byte of the script changes. The script must be saved into the indicators folder.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
action | string | yes | — | read answers the arrangement; place puts statement index (from 0, in the text's order) at x, y; tidy lays every statement again in the text's order; forget deletes the arrangement. |
index | integer | — | — | |
x | number | — | — | |
y | number | — | — |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ide_board",
"arguments": {
"action": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def ide_board(self, action: str, *, index: Optional[int] = None, x: Optional[float] = None, y: Optional[float] = None) -> Dict[str, Any]JavaScript
client.indicator
ideBoard(args)C#
client.Indicator
public Task<JsonNode?> IdeBoard(string action, long? index = null, double? x = null, double? y = null, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) IdeBoard(ctx context.Context, args IndicatorIdeBoardArgs) (any, error)Java
client.indicator
public Object ideBoard(IdeBoardArgs args)C++
client.indicator
Json ide_board(const IdeBoardArgs &args)Julia
client.indicator
ide_board = (action; index = nothing, x = nothing, y = nothing)R
client$indicator
`ide_board` = function(action, index = NULL, x = NULL, y = NULL)Rust
client.indicator()
pub fn ide_board(&self, args: IndicatorIdeBoardArgs) -> Result<Value, Error>ide_edit#
Set the text in the Assay IDE
Sets the whole text of the tab in front of the Assay IDE, as typing does: checked at once, one entry the person's Ctrl+Z takes back, nothing saved (indicator_install saves). Answers the IDE as ide_state does, with the new findings.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
source | string | yes | — | The whole new text of the tab in front. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ide_edit",
"arguments": {
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def ide_edit(self, source: str) -> Dict[str, Any]JavaScript
client.indicator
ideEdit(args)C#
client.Indicator
public Task<JsonNode?> IdeEdit(string source, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) IdeEdit(ctx context.Context, args IndicatorIdeEditArgs) (any, error)Java
client.indicator
public Object ideEdit(IdeEditArgs args)C++
client.indicator
Json ide_edit(const IdeEditArgs &args)Julia
client.indicator
ide_edit = (source)R
client$indicator
`ide_edit` = function(source)Rust
client.indicator()
pub fn ide_edit(&self, args: IndicatorIdeEditArgs) -> Result<Value, Error>ide_graph#
Read the Assay IDE's graph
Answers the sheet of the tab in front of the Assay IDE: a row per statement with its own line number and the kind of thing it is, and inside each row the nodes it draws, each with its kind, its label and the lines its text stands on. The same sheet the window draws, read the same way a person reads it. Writes nothing.
Takes no arguments.
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ide_graph",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def ide_graph(self) -> Dict[str, Any]JavaScript
client.indicator
ideGraph(args)C#
client.Indicator
public Task<JsonNode?> IdeGraph(CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) IdeGraph(ctx context.Context) (any, error)Java
client.indicator
public Object ideGraph()C++
client.indicator
Json ide_graph()Julia
client.indicator
ide_graph = ()R
client$indicator
`ide_graph` = function()Rust
client.indicator()
pub fn ide_graph(&self) -> Result<Value, Error>ide_graph_edit#
Make a gesture on the Assay IDE's graph
Makes one gesture on the sheet of the tab in front, exactly as a person's press or drag makes it: written into the text by the same function, one entry the person's Ctrl+Z takes back, checked as typing is, nothing saved. A gesture the sheet refuses is answered with its sentence and changes nothing. Answers the IDE as ide_state does.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
gesture | any | yes | — | One gesture of the sheet, as ide_graph's rows and nodes name the text: {"SetLiteral": {"at": span, "value": "20"}}, {"Wire": {"from": span, "to": span, "cast": null}}, {"AddRow": {"after": span, "text": "…"}}, {"MoveRow": …}, {"DeleteRow": …}, {"WrapIn": {"first": span, "last": span, "with": "If"}}, {"Extract": …} and the rest; a span is {"start": {"line": l, "col": c}, "end": {…}} exactly as ide_graph answers it. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ide_graph_edit",
"arguments": {
"gesture": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def ide_graph_edit(self, gesture: Any) -> Dict[str, Any]JavaScript
client.indicator
ideGraphEdit(args)C#
client.Indicator
public Task<JsonNode?> IdeGraphEdit(object gesture, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) IdeGraphEdit(ctx context.Context, args IndicatorIdeGraphEditArgs) (any, error)Java
client.indicator
public Object ideGraphEdit(IdeGraphEditArgs args)C++
client.indicator
Json ide_graph_edit(const IdeGraphEditArgs &args)Julia
client.indicator
ide_graph_edit = (gesture)R
client$indicator
`ide_graph_edit` = function(gesture)Rust
client.indicator()
pub fn ide_graph_edit(&self, args: IndicatorIdeGraphEditArgs) -> Result<Value, Error>ide_open#
Open a script in the Assay IDE
Opens the Assay IDE on a script of the indicators folder by its file name, brought to the front if a tab holds it already, or on a new script's text in a new tab, not saved. Answers the IDE as ide_state does.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
file | string | — | — | A script of the indicators folder by its file name (mean.assay), brought to the front if a tab holds it already. Give this or source. |
source | string | — | — | Or a new script's whole text, in a new tab, not saved. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ide_open",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def ide_open(self, *, file: Optional[str] = None, source: Optional[str] = None) -> Dict[str, Any]JavaScript
client.indicator
ideOpen(args)C#
client.Indicator
public Task<JsonNode?> IdeOpen(string? file = null, string? source = null, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) IdeOpen(ctx context.Context, args IndicatorIdeOpenArgs) (any, error)Java
client.indicator
public Object ideOpen(IdeOpenArgs args)C++
client.indicator
Json ide_open(const IdeOpenArgs &args)Julia
client.indicator
ide_open = (; file = nothing, source = nothing)R
client$indicator
`ide_open` = function(file = NULL, source = NULL)Rust
client.indicator()
pub fn ide_open(&self, args: IndicatorIdeOpenArgs) -> Result<Value, Error>ide_state#
Read the Assay IDE
Answers whether the Assay IDE is open, its tabs (each tab's number, name, whether it is unsaved and whether it is in front, and the tab shown beside it in a split), and the tab in front: its name, file, text, findings and stops with their conditions. Writes nothing.
Takes no arguments.
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ide_state",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def ide_state(self) -> Dict[str, Any]JavaScript
client.indicator
ideState(args)C#
client.Indicator
public Task<JsonNode?> IdeState(CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) IdeState(ctx context.Context) (any, error)Java
client.indicator
public Object ideState()C++
client.indicator
Json ide_state()Julia
client.indicator
ide_state = ()R
client$indicator
`ide_state` = function()Rust
client.indicator()
pub fn ide_state(&self) -> Result<Value, Error>ide_stop#
Put or take a stop in the Assay IDE
Puts a stop on a line of the script in front of the Assay IDE, with the condition it stops on, or takes it away, as F9 and the stop's condition field do. A run and inspect then says where it fires. Answers the IDE as ide_state does.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
condition | string | — | — | The condition it stops on, an expression of the script (n % 2 == 1); empty or absent: whenever the line runs. |
line | integer | yes | — | The line of the script in front, from 1. |
on | boolean | yes | — | True puts a stop there (or changes its condition), false takes it away. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ide_stop",
"arguments": {
"line": 1,
"on": true
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def ide_stop(self, line: int, on: bool, *, condition: Optional[str] = None) -> Dict[str, Any]JavaScript
client.indicator
ideStop(args)C#
client.Indicator
public Task<JsonNode?> IdeStop(long line, bool on, string? condition = null, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) IdeStop(ctx context.Context, args IndicatorIdeStopArgs) (any, error)Java
client.indicator
public Object ideStop(IdeStopArgs args)C++
client.indicator
Json ide_stop(const IdeStopArgs &args)Julia
client.indicator
ide_stop = (line, on; condition = nothing)R
client$indicator
`ide_stop` = function(line, on, condition = NULL)Rust
client.indicator()
pub fn ide_stop(&self, args: IndicatorIdeStopArgs) -> Result<Value, Error>indicator_install#
Install a study script
Writes a study script into the person's indicators folder: a Python study, or an Assay script when the file name ends.assay. A file already there is written over only with replace, and then waits for the person's tick like a new one. It is not run - not even read for its declaration - until the person ticks it in Settings › Indicators. Answers the file and its state.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
file_name | string | yes | — | The script's file name in the indicators folder: [a-z0-9_]{1,32}, with or without.py; with.assay for an Assay script. |
replace | boolean | — | — | True writes over the script already in the folder under this name (the Assay editor's Save); the file is then the agent's and waits for the person's tick again. Omitted or false, a file already there is never written over. |
source | string | yes | — | The script's whole text: one @study, as bentrix.study declares it; or an Assay script, which script_check checks first. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "indicator_install",
"arguments": {
"file_name": "…",
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def install(self, file_name: str, source: str, *, replace: Optional[bool] = None) -> Dict[str, Any]JavaScript
client.indicator
install(args)C#
client.Indicator
public Task<JsonNode?> Install(string fileName, string source, bool? replace = null, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) Install(ctx context.Context, args IndicatorInstallArgs) (any, error)Java
client.indicator
public Object install(InstallArgs args)C++
client.indicator
Json install(const InstallArgs &args)Julia
client.indicator
install = (file_name, source; replace = nothing)R
client$indicator
`install` = function(file_name, source, replace = NULL)Rust
client.indicator()
pub fn install(&self, args: IndicatorInstallArgs) -> Result<Value, Error>indicator_read#
Read a study script's text
Answers the text of one script in the person's indicators folder - an Assay script or a Python study - with its state as indicators_state lists it: what the Assay editor opens. Only a file of that folder is read; a script from elsewhere is handed to script_check and indicator_install as text.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
file | string | yes | — | The script's file name in the indicators folder, with its extension: my_rsi.assay or my_sma.py. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "indicator_read",
"arguments": {
"file": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def read(self, file: str) -> Dict[str, Any]JavaScript
client.indicator
read(args)C#
client.Indicator
public Task<JsonNode?> Read(string file, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) Read(ctx context.Context, args IndicatorReadArgs) (any, error)Java
client.indicator
public Object read(ReadArgs args)C++
client.indicator
Json read(const ReadArgs &args)Julia
client.indicator
read = (file)R
client$indicator
`read` = function(file)Rust
client.indicator()
pub fn read(&self, args: IndicatorReadArgs) -> Result<Value, Error>indicator_rescan#
Read the indicators folder again
Reads the person's indicators folder again, as Settings › Indicators' Rescan does: each script that may run describes itself, and indicators_state reads the outcome once it lands.
Takes no arguments.
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "indicator_rescan",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def rescan(self) -> Dict[str, Any]JavaScript
client.indicator
rescan(args)C#
client.Indicator
public Task<JsonNode?> Rescan(CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) Rescan(ctx context.Context) (any, error)Java
client.indicator
public Object rescan()C++
client.indicator
Json rescan()Julia
client.indicator
rescan = ()R
client$indicator
`rescan` = function()Rust
client.indicator()
pub fn rescan(&self) -> Result<Value, Error>script_check#
Check an Assay script
Compiles an Assay script under Settings › Assay's settings and derives the custom study it would be, writing nothing; budgets says the steps a bar, bars back, array elements, string characters and nesting it runs under, and what a trial run over 500 synthetic bars used of them (whether it ran, its fault, the most steps a bar took and its share of the budget). Answers every finding with its line and column (kind: error, refused, later, reads the future), the notes on calls that run as no-ops, and either the study's custom_study_spec or the reasons it cannot be one, each at its place; and the compatibility report: how many built-ins it names and every place that does not simply run (each finding, and each built-in that diverges, with what it computes differently), as the Assay editor exports it.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
name | string | — | — | The file's stem the study's id is made from; omitted, the id is script_<8 hex> of the text. |
source | string | yes | — | The script's whole text; it begins //@version=5 or //@version=6. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_check",
"arguments": {
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_check(self, source: str, *, name: Optional[str] = None) -> Dict[str, Any]JavaScript
client.indicator
scriptCheck(args)C#
client.Indicator
public Task<JsonNode?> ScriptCheck(string source, string? name = null, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptCheck(ctx context.Context, args IndicatorScriptCheckArgs) (any, error)Java
client.indicator
public Object scriptCheck(ScriptCheckArgs args)C++
client.indicator
Json script_check(const ScriptCheckArgs &args)Julia
client.indicator
script_check = (source; name = nothing)R
client$indicator
`script_check` = function(source, name = NULL)Rust
client.indicator()
pub fn script_check(&self, args: IndicatorScriptCheckArgs) -> Result<Value, Error>script_complete#
Complete an Assay script at a place
Answers what may be typed at line and col of an Assay script, best first, in the text's own version (a version-4 text is offered version 4's names, each with what it is read as): each item's label, kind, signature or type, note, the text it inserts, whether it runs here, and whether it is Assay's own; and the span the items replace. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
col | integer | yes | — | The column, from 1, in characters. |
line | integer | yes | — | The line, from 1. |
source | string | yes | — | The script's whole text, in any version 1 to 6 or with no version line. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_complete",
"arguments": {
"col": 1,
"line": 1,
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_complete(self, source: str, line: int, col: int) -> Dict[str, Any]JavaScript
client.indicator
scriptComplete(args)C#
client.Indicator
public Task<JsonNode?> ScriptComplete(string source, long line, long col, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptComplete(ctx context.Context, args IndicatorScriptCompleteArgs) (any, error)Java
client.indicator
public Object scriptComplete(ScriptCompleteArgs args)C++
client.indicator
Json script_complete(const ScriptCompleteArgs &args)Julia
client.indicator
script_complete = (source, line, col)R
client$indicator
`script_complete` = function(source, line, col)Rust
client.indicator()
pub fn script_complete(&self, args: IndicatorScriptCompleteArgs) -> Result<Value, Error>script_convert#
Convert an Assay script to a newer version
Answers an older script (version 1 to 4, or no version line) written in version 5 or 6 - the text and the edits that make it, one a changed run of lines - as the IDE's Convert command shows it in a diff: the version pass's own reading written onto the source, every comment and the layout kept, computing what the original computes. Refused by name where an edit in place cannot say it (a script declaring its own ta, a strategy's when inside an expression) and for a conversion down. Writes nothing; the agent applies the edits or not.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
source | string | yes | — | The script's whole text, version 1 to 4 or with no version line. |
to | integer | yes | — | The version it is written in: 5 or 6. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_convert",
"arguments": {
"source": "…",
"to": 1
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_convert(self, source: str, to: int) -> Dict[str, Any]JavaScript
client.indicator
scriptConvert(args)C#
client.Indicator
public Task<JsonNode?> ScriptConvert(string source, long to, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptConvert(ctx context.Context, args IndicatorScriptConvertArgs) (any, error)Java
client.indicator
public Object scriptConvert(ScriptConvertArgs args)C++
client.indicator
Json script_convert(const ScriptConvertArgs &args)Julia
client.indicator
script_convert = (source, to)R
client$indicator
`script_convert` = function(source, to)Rust
client.indicator()
pub fn script_convert(&self, args: IndicatorScriptConvertArgs) -> Result<Value, Error>script_definition#
Where an Assay script declares a name
Answers the span where the script declares the name at line and col; null for a built-in or no name. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
col | integer | yes | — | The column, from 1, in characters. |
line | integer | yes | — | The line, from 1. |
source | string | yes | — | The script's whole text, in any version 1 to 6 or with no version line. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_definition",
"arguments": {
"col": 1,
"line": 1,
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_definition(self, source: str, line: int, col: int) -> Dict[str, Any]JavaScript
client.indicator
scriptDefinition(args)C#
client.Indicator
public Task<JsonNode?> ScriptDefinition(string source, long line, long col, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptDefinition(ctx context.Context, args IndicatorScriptDefinitionArgs) (any, error)Java
client.indicator
public Object scriptDefinition(ScriptDefinitionArgs args)C++
client.indicator
Json script_definition(const ScriptDefinitionArgs &args)Julia
client.indicator
script_definition = (source, line, col)R
client$indicator
`script_definition` = function(source, line, col)Rust
client.indicator()
pub fn script_definition(&self, args: IndicatorScriptDefinitionArgs) -> Result<Value, Error>script_folds#
Where an Assay script folds
Answers each run of lines that folds: the line that stays shown and the last line it hides. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
source | string | yes | — | The script's whole text, in any version 1 to 6 or with no version line. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_folds",
"arguments": {
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_folds(self, source: str) -> Dict[str, Any]JavaScript
client.indicator
scriptFolds(args)C#
client.Indicator
public Task<JsonNode?> ScriptFolds(string source, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptFolds(ctx context.Context, args IndicatorScriptFoldsArgs) (any, error)Java
client.indicator
public Object scriptFolds(ScriptFoldsArgs args)C++
client.indicator
Json script_folds(const ScriptFoldsArgs &args)Julia
client.indicator
script_folds = (source)R
client$indicator
`script_folds` = function(source)Rust
client.indicator()
pub fn script_folds(&self, args: IndicatorScriptFoldsArgs) -> Result<Value, Error>script_format#
Format an Assay script
Answers the script's text formatted as the IDE's Format makes it, and the edits that make it: whitespace moved and nothing else - no name rewritten, the version line unchanged. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
source | string | yes | — | The script's whole text, in any version 1 to 6 or with no version line. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_format",
"arguments": {
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_format(self, source: str) -> Dict[str, Any]JavaScript
client.indicator
scriptFormat(args)C#
client.Indicator
public Task<JsonNode?> ScriptFormat(string source, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptFormat(ctx context.Context, args IndicatorScriptFormatArgs) (any, error)Java
client.indicator
public Object scriptFormat(ScriptFormatArgs args)C++
client.indicator
Json script_format(const ScriptFormatArgs &args)Julia
client.indicator
script_format = (source)R
client$indicator
`script_format` = function(source)Rust
client.indicator()
pub fn script_format(&self, args: IndicatorScriptFormatArgs) -> Result<Value, Error>script_history_list#
An Assay script's kept versions
Answers the versions the IDE kept of one script of the indicators folder, newest first: each one's id, when (UTC), what took it (save, run, format, convert, restore), the lines it added and removed against the one before, and its label. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
file | string | yes | — | A script of the indicators folder, by its file name (rsi_divergence.assay) or its stem. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_history_list",
"arguments": {
"file": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_history_list(self, file: str) -> Dict[str, Any]JavaScript
client.indicator
scriptHistoryList(args)C#
client.Indicator
public Task<JsonNode?> ScriptHistoryList(string file, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptHistoryList(ctx context.Context, args IndicatorScriptHistoryListArgs) (any, error)Java
client.indicator
public Object scriptHistoryList(ScriptHistoryListArgs args)C++
client.indicator
Json script_history_list(const ScriptHistoryListArgs &args)Julia
client.indicator
script_history_list = (file)R
client$indicator
`script_history_list` = function(file)Rust
client.indicator()
pub fn script_history_list(&self, args: IndicatorScriptHistoryListArgs) -> Result<Value, Error>script_history_read#
Read one kept version of an Assay script
Answers the text of one version the IDE kept of a script, exactly as it stood. Writes nothing; an agent that wants it back installs it with indicator_install.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
file | string | yes | — | A script of the indicators folder, by its file name or its stem. |
id | string | yes | — | A version's id, as script_history_list answers it. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_history_read",
"arguments": {
"file": "…",
"id": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_history_read(self, file: str, id: str) -> Dict[str, Any]JavaScript
client.indicator
scriptHistoryRead(args)C#
client.Indicator
public Task<JsonNode?> ScriptHistoryRead(string file, string id, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptHistoryRead(ctx context.Context, args IndicatorScriptHistoryReadArgs) (any, error)Java
client.indicator
public Object scriptHistoryRead(ScriptHistoryReadArgs args)C++
client.indicator
Json script_history_read(const ScriptHistoryReadArgs &args)Julia
client.indicator
script_history_read = (file, id)R
client$indicator
`script_history_read` = function(file, id)Rust
client.indicator()
pub fn script_history_read(&self, args: IndicatorScriptHistoryReadArgs) -> Result<Value, Error>script_hover#
What a name in an Assay script is
Answers what the name at line and col of an Assay script is: its span, its title (a built-in's signature, or how the script declares it), its note, whether it runs here, what a version 1-4 name is read as, and whether it is Assay's own; null where no name stands there. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
col | integer | yes | — | The column, from 1, in characters. |
line | integer | yes | — | The line, from 1. |
source | string | yes | — | The script's whole text, in any version 1 to 6 or with no version line. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_hover",
"arguments": {
"col": 1,
"line": 1,
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_hover(self, source: str, line: int, col: int) -> Dict[str, Any]JavaScript
client.indicator
scriptHover(args)C#
client.Indicator
public Task<JsonNode?> ScriptHover(string source, long line, long col, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptHover(ctx context.Context, args IndicatorScriptHoverArgs) (any, error)Java
client.indicator
public Object scriptHover(ScriptHoverArgs args)C++
client.indicator
Json script_hover(const ScriptHoverArgs &args)Julia
client.indicator
script_hover = (source, line, col)R
client$indicator
`script_hover` = function(source, line, col)Rust
client.indicator()
pub fn script_hover(&self, args: IndicatorScriptHoverArgs) -> Result<Value, Error>script_inspect#
Run an Assay script recorded, as the IDE's Run and inspect does
Runs a script over a workbench's bars of one market and interval, up to its cursor and never past it (the newest 5000), recorded as the IDE's Run and inspect records it, and answers: how many bars were read, each asked bar's named values at its close and the lines that ran in it (a bar outside the kept 5000 or past the bars read is refused), the bars where each stop fired, the script's log, its fault, and its lines by steps. Runs nothing on a chart and writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
bars | array of integer | — | — | The bars whose rows are answered, by their place from 0 (the oldest read); omitted, the last. |
bench | string | yes | — | The workbench's uri, as get_state gives it. |
source | string | yes | — | The script's whole text. |
stops | array of object | — | — | Stops, as the IDE's F9 puts them: the bars where each fired are answered. |
stops[].condition | string | — | — | The condition it fires on, an expression of the script's names; omitted, whenever the line runs. |
stops[].line | integer | yes | — | The line, from 1. |
symbol | string | yes | — | One of the workbench's markets. |
timeframe | string | yes | — | An interval's label: M1, H4, D1. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_inspect",
"arguments": {
"bench": "…",
"source": "…",
"symbol": "…",
"timeframe": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_inspect(self, source: str, bench: str, symbol: str, timeframe: str, *, bars: Optional[List[int]] = None, stops: Optional[List[InspectStop]] = None) -> Dict[str, Any]JavaScript
client.indicator
scriptInspect(args)C#
client.Indicator
public Task<JsonNode?> ScriptInspect(string source, string bench, string symbol, string timeframe, IReadOnlyList<long>? bars = null, object? stops = null, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptInspect(ctx context.Context, args IndicatorScriptInspectArgs) (any, error)Java
client.indicator
public Object scriptInspect(ScriptInspectArgs args)C++
client.indicator
Json script_inspect(const ScriptInspectArgs &args)Julia
client.indicator
script_inspect = (source, bench, symbol, timeframe; bars = nothing, stops = nothing)R
client$indicator
`script_inspect` = function(source, bench, symbol, timeframe, bars = NULL, stops = NULL)Rust
client.indicator()
pub fn script_inspect(&self, args: IndicatorScriptInspectArgs) -> Result<Value, Error>script_references#
Every place an Assay script reads a name
Answers every span where the script reads the name at line and col (its own name, in its own scope), the declaration among them unless include_declaration is false. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
col | integer | yes | — | The column, from 1, in characters. |
include_declaration | boolean | — | — | Whether the declaration is among the answers; true when omitted. |
line | integer | yes | — | The line, from 1. |
source | string | yes | — | The script's whole text. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_references",
"arguments": {
"col": 1,
"line": 1,
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_references(self, source: str, line: int, col: int, *, include_declaration: Optional[bool] = None) -> Dict[str, Any]JavaScript
client.indicator
scriptReferences(args)C#
client.Indicator
public Task<JsonNode?> ScriptReferences(string source, long line, long col, bool? includeDeclaration = null, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptReferences(ctx context.Context, args IndicatorScriptReferencesArgs) (any, error)Java
client.indicator
public Object scriptReferences(ScriptReferencesArgs args)C++
client.indicator
Json script_references(const ScriptReferencesArgs &args)Julia
client.indicator
script_references = (source, line, col; include_declaration = nothing)R
client$indicator
`script_references` = function(source, line, col, include_declaration = NULL)Rust
client.indicator()
pub fn script_references(&self, args: IndicatorScriptReferencesArgs) -> Result<Value, Error>script_rename#
Rename a name an Assay script declares
Answers the edits that rename the script's own name at line and col to new_name everywhere it is read in its scope, or refuses by name (a built-in, a name already taken there, a name that is not one). Answers edits and writes nothing; the agent applies them or not.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
col | integer | yes | — | The column, from 1, in characters. |
line | integer | yes | — | The line, from 1. |
new_name | string | yes | — | The name it is given. |
source | string | yes | — | The script's whole text. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_rename",
"arguments": {
"col": 1,
"line": 1,
"new_name": "…",
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_rename(self, source: str, line: int, col: int, new_name: str) -> Dict[str, Any]JavaScript
client.indicator
scriptRename(args)C#
client.Indicator
public Task<JsonNode?> ScriptRename(string source, long line, long col, string newName, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptRename(ctx context.Context, args IndicatorScriptRenameArgs) (any, error)Java
client.indicator
public Object scriptRename(ScriptRenameArgs args)C++
client.indicator
Json script_rename(const ScriptRenameArgs &args)Julia
client.indicator
script_rename = (source, line, col, new_name)R
client$indicator
`script_rename` = function(source, line, col, new_name)Rust
client.indicator()
pub fn script_rename(&self, args: IndicatorScriptRenameArgs) -> Result<Value, Error>script_signature#
The call an Assay script's place stands in
Answers the call that line and col of an Assay script stands inside: the callee as written, its signature, its parameters with their types, which one is being typed, its note and what a version 1-4 name is read as; null where the place is in no call. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
col | integer | yes | — | The column, from 1, in characters. |
line | integer | yes | — | The line, from 1. |
source | string | yes | — | The script's whole text, in any version 1 to 6 or with no version line. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_signature",
"arguments": {
"col": 1,
"line": 1,
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_signature(self, source: str, line: int, col: int) -> Dict[str, Any]JavaScript
client.indicator
scriptSignature(args)C#
client.Indicator
public Task<JsonNode?> ScriptSignature(string source, long line, long col, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptSignature(ctx context.Context, args IndicatorScriptSignatureArgs) (any, error)Java
client.indicator
public Object scriptSignature(ScriptSignatureArgs args)C++
client.indicator
Json script_signature(const ScriptSignatureArgs &args)Julia
client.indicator
script_signature = (source, line, col)R
client$indicator
`script_signature` = function(source, line, col)Rust
client.indicator()
pub fn script_signature(&self, args: IndicatorScriptSignatureArgs) -> Result<Value, Error>script_symbols#
An Assay script's outline
Answers the outline the IDE shows: the declaration, the inputs, the functions with their parameters, the types and enums, and the outputs by title, each with its span and kind, nested. Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
source | string | yes | — | The script's whole text, in any version 1 to 6 or with no version line. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_symbols",
"arguments": {
"source": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_symbols(self, source: str) -> Dict[str, Any]JavaScript
client.indicator
scriptSymbols(args)C#
client.Indicator
public Task<JsonNode?> ScriptSymbols(string source, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptSymbols(ctx context.Context, args IndicatorScriptSymbolsArgs) (any, error)Java
client.indicator
public Object scriptSymbols(ScriptSymbolsArgs args)C++
client.indicator
Json script_symbols(const ScriptSymbolsArgs &args)Julia
client.indicator
script_symbols = (source)R
client$indicator
`script_symbols` = function(source)Rust
client.indicator()
pub fn script_symbols(&self, args: IndicatorScriptSymbolsArgs) -> Result<Value, Error>script_vocabulary#
A version's own words
Answers a version's keywords and, for versions 1 to 4, every name that version writes bare and what it is read as (sma read as ta.sma, study as indicator). Writes nothing.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
version | integer | yes | — | A version, 1 to 6. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "script_vocabulary",
"arguments": {
"version": 1
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.indicator
def script_vocabulary(self, version: int) -> Dict[str, Any]JavaScript
client.indicator
scriptVocabulary(args)C#
client.Indicator
public Task<JsonNode?> ScriptVocabulary(long version, CancellationToken ct = default)Go
client.Indicator
func (a *IndicatorAPI) ScriptVocabulary(ctx context.Context, args IndicatorScriptVocabularyArgs) (any, error)Java
client.indicator
public Object scriptVocabulary(ScriptVocabularyArgs args)C++
client.indicator
Json script_vocabulary(const ScriptVocabularyArgs &args)Julia
client.indicator
script_vocabulary = (version)R
client$indicator
`script_vocabulary` = function(version)Rust
client.indicator()
pub fn script_vocabulary(&self, args: IndicatorScriptVocabularyArgs) -> Result<Value, Error>