tv_set_study_inputs
Set one or more study input values on a TradingView chart, with type coercion and validation. Returns previous values so changes can be undone.
Instructions
MUTATES the chart: set one or more inputs on a study by id, then re-read them. Values are coerced to the input's declared type and validated against its options/min/max. Returns the previous value for every change so it can be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| study | Yes | study id or a case-insensitive part of its name | |
| inputs | Yes | map of input id -> new value, e.g. { "length": 21 } | |
| layout | No | chart layout id or index; default active | |
| 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) |