Tool tree
gradeNot graded
page: Every page
search_symbolsAnswer
Search Colombo Stock Exchange stocks and indices by ticker or company name. Returns matching symbols (e.g. "JKH.N0000") to use with open_chart.
View tool JSON
{
"name": "search_symbols",
"kind": "answer",
"impl": "imperative",
"description": "Search Colombo Stock Exchange stocks and indices by ticker or company name. Returns matching symbols (e.g. \"JKH.N0000\") to use with open_chart.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Ticker or company name, e.g. \"john keells\" or \"JKH\"."
}
},
"required": [
"query"
]
},
"page": "/"
}open_chartAction
Open (or switch to) the candlestick chart for a symbol, optionally at a timeframe, and wait for its data to load. Call this before any chart tool when no chart is open.
View tool JSON
{
"name": "open_chart",
"kind": "act",
"impl": "imperative",
"description": "Open (or switch to) the candlestick chart for a symbol, optionally at a timeframe, and wait for its data to load. Call this before any chart tool when no chart is open.",
"inputSchema": {
"type": "object",
"properties": {
"symbol": {
"type": "string",
"description": "CSE symbol, e.g. \"JKH.N0000\" or an index like \"ASI\". Use search_symbols if unsure."
},
"timeframe": {
"type": "string",
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"1D",
"1W",
"1M"
],
"description": "Bar size. Defaults to the current one."
}
},
"required": [
"symbol"
]
},
"page": "/"
}get_chart_stateAnswer
What the open chart is showing: symbol, timeframe, compared symbols, candle type, the active indicators with their parameters, and the number of user drawings.
View tool JSON
{
"name": "get_chart_state",
"kind": "answer",
"impl": "imperative",
"description": "What the open chart is showing: symbol, timeframe, compared symbols, candle type, the active indicators with their parameters, and the number of user drawings.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}get_visible_candlesAnswer
OHLCV bars from the open chart, oldest first, as [date, open, high, low, close, volume]. Defaults to the bars currently in view.
View tool JSON
{
"name": "get_visible_candles",
"kind": "answer",
"impl": "imperative",
"description": "OHLCV bars from the open chart, oldest first, as [date, open, high, low, close, volume]. Defaults to the bars currently in view.",
"inputSchema": {
"type": "object",
"properties": {
"range": {
"type": "string",
"enum": [
"visible",
"all"
],
"description": "\"visible\" (default) = bars on screen; \"all\" = everything loaded."
},
"maxBars": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "Most recent N bars within the range. Default 200."
}
}
},
"page": "/"
}get_last_barAnswer
The most recent bar on the open chart (or the bar under the user's crosshair if they are hovering one).
View tool JSON
{
"name": "get_last_bar",
"kind": "answer",
"impl": "imperative",
"description": "The most recent bar on the open chart (or the bar under the user's crosshair if they are hovering one).",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}list_indicatorsAnswer
Indicators active on the open chart with their parameters, pane, and the names of the lines each one plots (e.g. MA → "MA20", "MA50"). Use the names with get_indicator_values.
View tool JSON
{
"name": "list_indicators",
"kind": "answer",
"impl": "imperative",
"description": "Indicators active on the open chart with their parameters, pane, and the names of the lines each one plots (e.g. MA → \"MA20\", \"MA50\"). Use the names with get_indicator_values.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}get_indicator_valuesAnswer
Exact computed values of the indicators on the open chart (the numbers the chart plots — not estimates), per bar, with each bar's date and close. Includes a summary per indicator: latest value of each line, close's % distance from each price-pane line (e.g. moving averages), each line's % slope over the last 10 bars, and the most recent crossovers (line vs line, and close vs price-pane lines) with dates. Use for questions like "analyze the MAs".
View tool JSON
{
"name": "get_indicator_values",
"kind": "answer",
"impl": "imperative",
"description": "Exact computed values of the indicators on the open chart (the numbers the chart plots — not estimates), per bar, with each bar's date and close. Includes a summary per indicator: latest value of each line, close's % distance from each price-pane line (e.g. moving averages), each line's % slope over the last 10 bars, and the most recent crossovers (line vs line, and close vs price-pane lines) with dates. Use for questions like \"analyze the MAs\".",
"inputSchema": {
"type": "object",
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
},
"description": "Indicator names, e.g. [\"MA\", \"RSI\"]. Default: all active."
},
"range": {
"type": "string",
"enum": [
"visible",
"all"
],
"description": "\"visible\" (default) = bars on screen; \"all\" = everything loaded."
},
"maxBars": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "Most recent N bars within the range. Default 200."
},
"summaryOnly": {
"type": "boolean",
"description": "Omit per-bar rows and return just the summary. Default false."
}
}
},
"page": "/"
}get_drawingsAnswer
Drawings on the open chart — trendlines, horizontal levels, rectangles, Fibonacci tools, text boxes, etc. — with each anchor point's date and price. Includes the user's own drawings and any the agent added (byAgent: true).
View tool JSON
{
"name": "get_drawings",
"kind": "answer",
"impl": "imperative",
"description": "Drawings on the open chart — trendlines, horizontal levels, rectangles, Fibonacci tools, text boxes, etc. — with each anchor point's date and price. Includes the user's own drawings and any the agent added (byAgent: true).",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}set_timeframeAction
Change the open chart's bar size and wait for the new data to load.
View tool JSON
{
"name": "set_timeframe",
"kind": "act",
"impl": "imperative",
"description": "Change the open chart's bar size and wait for the new data to load.",
"inputSchema": {
"type": "object",
"properties": {
"timeframe": {
"type": "string",
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"1D",
"1W",
"1M"
]
}
},
"required": [
"timeframe"
]
},
"page": "/"
}add_indicatorAction
Add an indicator to the open chart (e.g. MA, EMA, RSI, MACD, BOLL), optionally with custom parameters (for MA/EMA/SMA each parameter is a period → one line, e.g. [20, 50, 200]). If it is already on the chart, only the parameters are updated. Use list_indicators for the available names.
View tool JSON
{
"name": "add_indicator",
"kind": "act",
"impl": "imperative",
"description": "Add an indicator to the open chart (e.g. MA, EMA, RSI, MACD, BOLL), optionally with custom parameters (for MA/EMA/SMA each parameter is a period → one line, e.g. [20, 50, 200]). If it is already on the chart, only the parameters are updated. Use list_indicators for the available names.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Indicator name, e.g. \"MA\"."
},
"params": {
"type": "array",
"items": {
"type": "number"
},
"description": "Calculation parameters. Default: the app defaults."
}
},
"required": [
"name"
]
},
"page": "/"
}remove_indicatorAction
Remove an indicator from the open chart.
View tool JSON
{
"name": "remove_indicator",
"kind": "act",
"impl": "imperative",
"description": "Remove an indicator from the open chart.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Indicator name, e.g. \"RSI\"."
}
},
"required": [
"name"
]
},
"page": "/"
}draw_price_levelAction
Draw a labelled horizontal line at a price on the open chart (e.g. support, resistance, target).
View tool JSON
{
"name": "draw_price_level",
"kind": "act",
"impl": "imperative",
"description": "Draw a labelled horizontal line at a price on the open chart (e.g. support, resistance, target).",
"inputSchema": {
"type": "object",
"properties": {
"price": {
"type": "number"
},
"label": {
"type": "string",
"description": "Short label, e.g. \"Support\"."
},
"kind": {
"type": "string",
"enum": [
"support",
"resistance",
"target",
"breakout_zone"
],
"description": "Sets the colour. Default \"target\"."
}
},
"required": [
"price",
"label"
]
},
"page": "/"
}draw_trendlineAction
Draw a straight line between two (date, price) points on the open chart. Dates snap to the nearest bar.
View tool JSON
{
"name": "draw_trendline",
"kind": "act",
"impl": "imperative",
"description": "Draw a straight line between two (date, price) points on the open chart. Dates snap to the nearest bar.",
"inputSchema": {
"type": "object",
"properties": {
"from": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"price": {
"type": "number"
}
},
"required": [
"date",
"price"
]
},
"to": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"price": {
"type": "number"
}
},
"required": [
"date",
"price"
]
},
"extend": {
"type": "boolean",
"description": "Extend the line to the right edge (a ray). Default false."
}
},
"required": [
"from",
"to"
]
},
"page": "/"
}clear_agent_drawingsAction
Remove every drawing the agent added to the open chart. The user's own drawings are left untouched.
View tool JSON
{
"name": "clear_agent_drawings",
"kind": "act",
"impl": "imperative",
"description": "Remove every drawing the agent added to the open chart. The user's own drawings are left untouched.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/"
}