Compare a zone snapshot to now
lw_zone_history_compareCompare a DNS zone history snapshot with its current records and get add, change, or delete actions needed to restore the snapshot. Read-only; no rollback is performed.
Instructions
Compare a history snapshot with the zone's current records (bleed Network/DNS/Zone/History/compare). Each returned record has an action (add, change, delete) that says what to do to the current zone to get back to the snapshot. Read-only: it does not roll anything back.
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": {
"history_id": "<history_id>"
},
"name": "lw_zone_history_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | Zone name, e.g. "example.com". Give this or zone_id. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| verbose | No | Return raw records. | |
| zone_id | No | Numeric zone id from lw_zone_list. Give this or zone. | |
| history_id | Yes | Snapshot id from lw_zone_history. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| context | No | ||
| preview | No | ||
| summary | Yes | ||
| warnings | No | ||
| next_page | No | ||
| next_step | No | ||
| truncated | No | ||
| expires_at | No | ||
| confirm_token | No |