Plan a bulk DNS import
lw_zone_import_planPreview a bulk DNS zone change without applying it: compare desired BIND text or records against the current zone and return creates, updates, deletes, and a plan_hash for the apply step.
Instructions
Plan a bulk change to a zone without changing anything. Give the desired records as BIND text (bind_text) or a records array. Compares with the current zone and returns creates, updates and deletes, plus a plan object and plan_hash to pass to lw_zone_import_apply. prune=false (default) only adds and updates; prune=true also deletes records not in the desired set. SOA is always ignored; apex NS is ignored unless manage_apex_ns=true. CAA and other types the v1 API lacks are reported as skipped.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "lw_zone_import_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | Zone name, e.g. "example.com". Give this or zone_id. | |
| prune | No | Delete current records missing from the desired set (default false). Deletes need LW_ALLOW_DESTRUCTIVE at apply time. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| records | No | Desired records, as an alternative to bind_text. | |
| zone_id | No | Numeric zone id from lw_zone_list. Give this or zone. | |
| bind_text | No | Zone file text. Relative names resolve against $ORIGIN or the zone name. | |
| default_ttl | No | TTL for BIND records without one when the text has no $TTL. | |
| manage_apex_ns | No | Include NS records at the apex (default false; those point at Liquid Web nameservers). |
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 |