Apply a reviewed Lovelace card edit
ha_lovelace_applyApply approved preview to update a Home Assistant Lovelace dashboard after verifying version and preview hash. Re-check the whole dashboard before saving to avoid concurrent edit overwrites.
Instructions
WRITE: apply the exact operations from a fresh, separately approved preview. Requires expectedVersion, expectedPreviewHash and acknowledgeNonAtomicSave=true. Rechecks the WHOLE dashboard before saving and verifies full readback. Home Assistant saves the ENTIRE dashboard and has NO atomic CAS: another editor can race between check and write. Pause other editors. No automatic retry or rollback. Never use to evade an approval rejection; this new write requires its own review.
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": {
"dashboard": "<dashboard>",
"cardPath": "<cardPath>",
"operations": "<operations>",
"expectedVersion": "<expectedVersion>",
"expectedPreviewHash": "<expectedPreviewHash>",
"acknowledgeNonAtomicSave": "<acknowledgeNonAtomicSave>"
},
"name": "ha_lovelace_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardPath | Yes | ||
| dashboard | Yes | ||
| operations | Yes | ||
| expectedVersion | Yes | ||
| expectedPreviewHash | Yes | ||
| acknowledgeNonAtomicSave | Yes |