Set one TTL on every record in a zone
lw_zone_bulk_ttlSets one TTL across every record in a DNS zone, with a preview of affected records before applying. Use it to lower TTLs before a cutover or raise them afterward.
Instructions
Set the same TTL on every record in a zone (bleed Network/DNS/Zone/bulkUpdateTTL). Typical use: lower TTLs to 300 a day before a cutover, raise them after. Preview lists the records whose TTL changes. Bleed-only. Write: needs LW_ALLOW_WRITES, then a confirmation step (preview first).
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": {
"ttl": "<ttl>"
},
"name": "lw_zone_bulk_ttl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | Yes | New TTL in seconds, e.g. 300 before a cutover, 3600 after. | |
| 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. | |
| zone_id | No | Numeric zone id from lw_zone_list. Give this or zone. | |
| confirm_token | No | Leave empty on the first call to get a preview and a token. Repeat the call with identical parameters plus this token to execute. |
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 |