layout_save
Saves the current TradingView chart layout in place, with optional rename, and verifies the expected layout ID to prevent writing to the wrong layout.
Instructions
Save the current layout in place, optionally renaming it. This is not a duplicate operation.
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": {
"target_id": "<target_id>",
"expected_layout_id": "<expected_layout_id>"
},
"name": "layout_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| target_id | Yes | Exact Chrome tab target ID from browser_list_tabs. Required for changes. | |
| expected_layout_id | Yes | Expected saved-layout ID. A mismatch stops the operation before writing. |