tv_set_resolution
Change the active TradingView chart's timeframe or resolution, such as from 5-minute to daily. Use it to switch intervals when analyzing price data.
Instructions
MUTATES the chart: change the active chart timeframe/resolution ("1", "5", "60", "1D", "1W"). Returns { previous, current } so the change can be reverted.
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": {
"resolution": "<resolution>"
},
"name": "tv_set_resolution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | No | chart layout id, target id, or 0-based index; default = the chart tab that is actually painting | |
| resolution | Yes | TradingView resolution string: minutes as a bare number ("5", "60"), or "1D"/"1W"/"1M" | |
| expect_layout | No | layout id the tab is expected to show right now; the call refuses if it differs (a tab keeps its target id when the user opens another layout in it) |