Update a DNS record
lw_record_updateUpdate an existing DNS record by ID, changing name, data, priority, or TTL, with a preview of before/after and conflicts before confirmed execution. Record type cannot change.
Instructions
Update a DNS record by id (v1 Network/DNS/Record/update). Can change name, rdata, prio and ttl; the type cannot change (delete and recreate instead). Preview fetches the current record and shows before and after plus conflicts. 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": {
"id": "<id>"
},
"name": "lw_record_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record id from lw_record_list. | |
| ttl | No | New TTL in seconds. | |
| name | No | New name (relative, "@" or fully qualified). | |
| prio | No | New priority (MX, SRV). | |
| zone | No | Zone name, only needed if the record name cannot be matched to a zone. | |
| rdata | No | New record data. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| 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 |