chart_set_type
Sets a TradingView chart to a numeric chart-type ID, verifies the readback, and stops before writing if the saved-layout ID does not match.
Instructions
Set TradingView chart type numeric ID and verify readback.
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": {
"chart_type": "<chart_type>",
"target_id": "<target_id>",
"expected_layout_id": "<expected_layout_id>"
},
"name": "chart_set_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Exact Chrome tab target ID from browser_list_tabs. Required for changes. | |
| chart_type | Yes | ||
| expected_layout_id | Yes | Expected saved-layout ID. A mismatch stops the operation before writing. |