update_device
Update device attributes like name, tags, address, and notes, with prior-value capture for rollback and audit. Use dry_run to preview changes before applying.
Instructions
[WRITE][risk=medium] Update device attributes (name/tags/address/notes).
Captures the changed keys' prior values before the change, so the harness
records an undo (restore the prior values) and a faithful audit trail. Pass
dry_run=True to preview.
Args:
serial: Device serial.
attrs: Attributes to set — allowed keys: name, tags, address, notes,
lat, lng, floorPlanId.
dry_run: If True, preview without changing.
target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attrs | Yes | ||
| serial | Yes | ||
| target | No | ||
| dry_run | No |