alert_prepare
Build and validate a native price, strategy, or indicator alert from current TradingView chart state without creating it. Returns hashes and inspectable routing metadata.
Instructions
Build and validate a native price, strategy or indicator alert from current chart state without creating it. Returns hashes and inspectable routing metadata.
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>",
"condition": "<condition>"
},
"name": "alert_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| active | No | ||
| symbol | No | ||
| message | No | ||
| condition | Yes | ||
| target_id | No | Exact Chrome tab target ID from browser_list_tabs. Required for changes. | |
| resolution | No | ||
| webhook_url | No | ||
| notifications | No | ||
| message_format | No | text | |
| expiration_days | No | ||
| idempotency_key | Yes | ||
| expected_layout_id | No | Expected saved-layout ID. A mismatch stops the operation before writing. |