dwlf_update_annotation
Update an existing DWLF annotation by merging only the fields you want to change; symbol and timeframe locate the row while sibling data and display settings stay intact.
Instructions
Update an existing annotation. symbol + timeframe are REQUIRED (the backend needs them to locate the row). data is merged field-by-field into the existing data — pass only the fields you want to change (e.g. {label: "..."} or {price: 56}); sibling fields are preserved. visible/locked/zIndex/groupId can also be patched.
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": {
"annotationId": "<annotationId>",
"symbol": "<symbol>",
"timeframe": "<timeframe>"
},
"name": "dwlf_update_annotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Partial data fields to merge (not a full replacement). E.g. {label: "Reclaim ~56"} or {color: "#ef4444"}. | |
| locked | No | Lock the annotation against edits | |
| symbol | Yes | Trading symbol the annotation belongs to — required to address the row | |
| zIndex | No | Stacking order | |
| groupId | No | Annotation group/workspace id | |
| visible | No | Show/hide the annotation | |
| timeframe | Yes | Annotation timeframe (e.g. "daily", "weekly", "hourly") — required to address the row | |
| annotationId | Yes | Annotation ID (e.g. ann_d604ba96a697) |