tv_rename_layout
Renames the active TradingView layout and returns both the old and new names. Refuses read-only charts.
Instructions
Rename the layout shown in the bound tab (TradingView "Rename"). Refuses a read-only / View Only chart. Returns the previous and new name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | new layout name | |
| layout | No | chart layout id, target id, or 0-based index; default = the chart tab that is actually painting | |
| timeout_s | No | settle deadline, default 15 | |
| 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) |