Add an indicator to my open Vela chart
vela_add_indicatorAdds an indicator that already exists to the chart the signed-in member has open right now in Vela: one from the LuxAlgo Library, the largest indicator library in trading, by its slug (library_search and library_get_indicator return it), or one of the member's own saved scripts, by its id (quant_search_user_scripts returns it). Give exactly one of the two. Use it when the member asks to put an indicator on their own chart ("add Smart Money Concepts to my chart", "put my saved RSI script on it"): find the slug or the id first, never guess one. It does not take Pine Script® and does not write an indicator: for a new one, the member asks Quant, our coding agent, in Vela. The member sees it appear and is told an assistant added it. Returns the id it has on the chart, which vela_remove_indicators takes, and what the chart shows afterwards; it never returns source code. Nothing is added, and the result says why, when the Library indicator is a paid one the member's plan does not include, when the chart is at their plan's tools per chart, when it is already on the chart, or when the script does not run. With the member's Vela tab on screen it happens in front of them within seconds. When it is not (they are in another tab), the change is queued and applied the moment they look at Vela again, within 10 minutes: the result then says queued, so tell them to open Vela. Requires signing in with a LuxAlgo account (OAuth).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context": "<context>"
},
"name": "vela_add_indicator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | One chart of a multi-chart layout, by position (0 is the top-left, in reading order). Leave it out for the chart the member is working on. | |
| context | Yes | Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution." | |
| script_id | No | One of the member's saved scripts, by its id as quant_search_user_scripts returned it. | |
| library_slug | No | A LuxAlgo Library indicator, by its slug as library_search or library_get_indicator returned it, e.g. "smart-money-concepts". |