chart_set_timeframe
Set a TradingView chart to a new timeframe on a specified browser tab and confirm the readback, refusing the change during replay or on a layout ID mismatch.
Instructions
Set timeframe and verify readback; refuses during replay.
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": {
"timeframe": "<timeframe>",
"target_id": "<target_id>",
"expected_layout_id": "<expected_layout_id>"
},
"name": "chart_set_timeframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Exact Chrome tab target ID from browser_list_tabs. Required for changes. | |
| timeframe | Yes | TradingView resolution, e.g. 60, 1D, 1W | |
| expected_layout_id | Yes | Expected saved-layout ID. A mismatch stops the operation before writing. |