ui_evaluate
Execute JavaScript directly in TradingView page context to automate chart analysis, interact with UI, and integrate with trading workflows.
Instructions
Execute JavaScript code in the TradingView page context for advanced automation
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": {
"expression": "<expression>"
},
"name": "ui_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | JavaScript expression to evaluate in the page context. Wrap in IIFE for complex logic. |