layout_copy
Copy a TradingView saved layout under a unique name, verify the new saved ID, compare charts, and return the destination browser target using an idempotency key.
Instructions
Native Make a copy with a unique name, new saved-ID verification, chart comparison and a durable idempotency key. Returns the destination browser target for subsequent operations.
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": {
"name": "<name>",
"idempotency_key": "<idempotency_key>",
"target_id": "<target_id>",
"expected_layout_id": "<expected_layout_id>"
},
"name": "layout_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target_id | Yes | Exact Chrome tab target ID from browser_list_tabs. Required for changes. | |
| timeout_ms | No | ||
| save_source | No | ||
| idempotency_key | Yes | ||
| expected_layout_id | Yes | Expected saved-layout ID. A mismatch stops the operation before writing. |